From b22b7083e7553d20c0d3f10747ce7d05a353b7c9 Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 15 Oct 2021 09:33:25 -0700 Subject: [PATCH] Correct typo? Getting "A definition for option `fudo.secrets.host-secrets' is not of type `attribute set of attribute set of submoduless'." But it is, I don't get it. Maybe it's due to the typo? Also, switch back to using secrets. --- lib/fudo/initrd-network.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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"; };