diff --git a/lib/fudo/initrd-network.nix b/lib/fudo/initrd-network.nix index e1eeaff..3c6dc80 100644 --- a/lib/fudo/initrd-network.nix +++ b/lib/fudo/initrd-network.nix @@ -51,6 +51,10 @@ in { host-key-pkg = host-keys.${config.instance.hostname}; host-privkey = builtins.toPath "${host-key-pkg}/${key-filename}"; in { + secrets = { + config.fudo.secrets.host-secrets.${hostname}.initrd-ssh-host-key.target-file = null; + }; + network = { enable = true; @@ -74,7 +78,7 @@ in { secrets.host-secrets = mapAttrs (hostname: key-pkg: { initrd-ssh-host-key = { - source-file = "${key-pkg}/${key-fdilename}"; + source-file = "${key-pkg}/${key-filename}"; target-file = "/var/run/ssh/${key-filename}"; user = "root"; };