From 8a928d9e25c22fce20cc2db8edb2e50d6b9f1dd2 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 14 Oct 2021 16:39:43 -0700 Subject: [PATCH] Move secrets to the right place --- lib/fudo/initrd-network.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/fudo/initrd-network.nix b/lib/fudo/initrd-network.nix index 0c36062..eaddd63 100644 --- a/lib/fudo/initrd-network.nix +++ b/lib/fudo/initrd-network.nix @@ -45,6 +45,10 @@ in { host-key-pkg = host-keys.${config.instance.hostname}; host-privkey = builtins.toPath "${host-key-pkg}/ssh_host_ed25519_key"; in { + secrets = { + "/var/run/ssh-host-key" = host-privkey; + }; + network = { enable = true; @@ -59,9 +63,6 @@ in { hostKeys = [ "/var/run/ssh-host-key" ]; - secrets = { - "/var/run/ssh-host-key" = host-privkey; - }; }; }; };