summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorJanne Heß <janne@hess.ooo>2022-04-24 15:45:02 +0100
committerJanne Heß <janne@hess.ooo>2022-04-30 11:41:27 +0200
commitfa2c9b41d4fc2420036021699c2524f5e1f81c66 (patch)
treef61a7c38b0827394ded26b871cbf76806541ceec /nixos/tests
parentf678ad7c7a306f5a073fbb68e93a074ca2d1f054 (diff)
downloadnixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar.gz
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar.bz2
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar.lz
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar.xz
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.tar.zst
nixpkgs-fa2c9b41d4fc2420036021699c2524f5e1f81c66.zip
nixos/systemd-stage-1: Add initrd secrets support
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/systemd-initrd-luks-keyfile.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/systemd-initrd-luks-keyfile.nix b/nixos/tests/systemd-initrd-luks-keyfile.nix
index 970163c36a4..25c0c5bd866 100644
--- a/nixos/tests/systemd-initrd-luks-keyfile.nix
+++ b/nixos/tests/systemd-initrd-luks-keyfile.nix
@@ -32,7 +32,7 @@ in {
         };
       };
       virtualisation.bootDevice = "/dev/mapper/cryptroot";
-      boot.initrd.systemd.contents."/etc/cryptroot.key".source = keyfile;
+      boot.initrd.secrets."/etc/cryptroot.key" = keyfile;
     };
   };