fixes agenix and zfs

This commit is contained in:
Dennis Schoepf 2026-03-04 22:52:52 +01:00
parent b0d4360415
commit cd2ed4f9ec

View file

@ -1,6 +1,7 @@
{ inputs, config, ... }:
let
hostname = "dnsc-server";
secretsDir = "${inputs.self}/secrets";
in
{
flake.nixosConfigurations.${hostname} = inputs.nixpkgs.lib.nixosSystem {
@ -22,6 +23,7 @@ in
({ config, ... }: {
imports = [ ./_hardware-configuration.nix ];
networking.hostName = hostname;
networking.hostId = "e5d5a602";
system.stateVersion = "24.11";
# Secrets for this machine
@ -30,7 +32,7 @@ in
"${config.users.users.dennis.home}/.ssh/id_ed25519"
];
secrets."restic/password" = {
file = ../../secrets/restic/password.age;
file = "${secretsDir}/restic/password.age";
};
};