summary refs log tree commit diff
path: root/nixos/tests/initrd-network-ssh/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/initrd-network-ssh/default.nix')
-rw-r--r--nixos/tests/initrd-network-ssh/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/tests/initrd-network-ssh/default.nix b/nixos/tests/initrd-network-ssh/default.nix
index 017de688208..0ad0563b0ce 100644
--- a/nixos/tests/initrd-network-ssh/default.nix
+++ b/nixos/tests/initrd-network-ssh/default.nix
@@ -22,6 +22,10 @@ import ../make-test-python.nix ({ lib, ... }:
             hostKeys = [ ./ssh_host_ed25519_key ];
           };
         };
+        boot.initrd.extraUtilsCommands = ''
+          mkdir -p $out/secrets/etc/ssh
+          cat "${./ssh_host_ed25519_key}" > $out/secrets/etc/ssh/sh_host_ed25519_key
+        '';
         boot.initrd.preLVMCommands = ''
           while true; do
             if [ -f fnord ]; then