summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:15:37 +0200
committerGregor Kleen <gkleen@yggdrasil.li>2021-08-03 17:15:37 +0200
commitceb3988424b9676af7da7cd35483e3f751cfcb1e (patch)
tree4d06ee3ce8cee83202fde07a7e7d6cc3033fb588
parent02a0b57551a6a5f9ebccff226c12b8f671a7c149 (diff)
downloadnixos-ceb3988424b9676af7da7cd35483e3f751cfcb1e.tar
nixos-ceb3988424b9676af7da7cd35483e3f751cfcb1e.tar.gz
nixos-ceb3988424b9676af7da7cd35483e3f751cfcb1e.tar.bz2
nixos-ceb3988424b9676af7da7cd35483e3f751cfcb1e.tar.xz
nixos-ceb3988424b9676af7da7cd35483e3f751cfcb1e.zip
vidhar: ...
-rw-r--r--system-profiles/initrd-ssh/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/system-profiles/initrd-ssh/default.nix b/system-profiles/initrd-ssh/default.nix
index 00fa55b6..55a608b9 100644
--- a/system-profiles/initrd-ssh/default.nix
+++ b/system-profiles/initrd-ssh/default.nix
@@ -13,12 +13,12 @@
13 sops.secrets = { 13 sops.secrets = {
14 initrd_ssh_host_rsa_key = { 14 initrd_ssh_host_rsa_key = {
15 key = "rsa"; 15 key = "rsa";
16 path = "/etc/initrd_ssh_host_rsa_key"; 16 path = "/etc/initrd-ssh/ssh_host_rsa_key";
17 sopsFile = ./host-keys + "/${hostName}-private.yaml"; 17 sopsFile = ./host-keys + "/${hostName}-private.yaml";
18 }; 18 };
19 initrd_ssh_host_ed25519_key = { 19 initrd_ssh_host_ed25519_key = {
20 key = "ed25519"; 20 key = "ed25519";
21 path = "/etc/initrd_ssh_host_ed25519_key"; 21 path = "/etc/initrd-ssh/ssh_host_ed25519_key";
22 sopsFile = ./host-keys + "/${hostName}-private.yaml"; 22 sopsFile = ./host-keys + "/${hostName}-private.yaml";
23 }; 23 };
24 }; 24 };
@@ -28,8 +28,8 @@
28 yq -r '.${typ}' ${./host-keys + "/${hostName}-public.yaml"} > $out 28 yq -r '.${typ}' ${./host-keys + "/${hostName}-public.yaml"} > $out
29 ''; 29 '';
30 in { 30 in {
31 "initrd_ssh_host_rsa_key.pub".source = mkPubkey "rsa"; 31 "initrd-ssh/ssh_host_rsa_key.pub".source = mkPubkey "rsa";
32 "initrd_ssh_host_ed25519_key.pub".source = mkPubkey "ed25519"; 32 "initrd-ssh/ssh_host_ed25519_key.pub".source = mkPubkey "ed25519";
33 }; 33 };
34 }; 34 };
35} 35}