backup: Offload DNS & SSH host key to other modules

This commit is contained in:
Katherina Walshe-Grey 2025-06-09 23:25:53 +01:00
parent 45831f553b
commit fd31dbed5a

View file

@ -95,8 +95,7 @@ in
(name: sync: (name: sync:
let let
inherit (sync) dataset sourceHost targetHost source target; inherit (sync) dataset sourceHost targetHost source target;
# TODO: don't want to have to dig into the node config for the fqdn sourceFqdn = "${sourceHost}.birdsong.network";
sourceFqdn = config.flake.nixosConfigurations.${sourceHost}.config.networking.fqdn;
in in
{ {
${sourceHost} = { pkgs, ... }: { ${sourceHost} = { pkgs, ... }: {
@ -128,9 +127,6 @@ in
}; };
}; };
}; };
# TODO: this should be handled by a networking module
programs.ssh.knownHosts.${sourceFqdn}.publicKey = keys.machines.${sourceHost};
}; };
}) })
cfg.sync cfg.sync