From fd31dbed5aec1869a927a38a3f0c21abe19e3e5d Mon Sep 17 00:00:00 2001 From: Katherina Walshe-Grey Date: Mon, 9 Jun 2025 23:25:53 +0100 Subject: [PATCH] backup: Offload DNS & SSH host key to other modules --- flake/backup.nix | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/flake/backup.nix b/flake/backup.nix index dddda69..6a103aa 100644 --- a/flake/backup.nix +++ b/flake/backup.nix @@ -95,8 +95,7 @@ in (name: sync: let inherit (sync) dataset sourceHost targetHost source target; - # TODO: don't want to have to dig into the node config for the fqdn - sourceFqdn = config.flake.nixosConfigurations.${sourceHost}.config.networking.fqdn; + sourceFqdn = "${sourceHost}.birdsong.network"; in { ${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