about summary refs log tree commit diff
path: root/nixos/tests/luks.nix
diff options
context:
space:
mode:
authorRaito Bezarius <masterancpp@gmail.com>2023-06-08 16:18:58 +0200
committerRaito Bezarius <masterancpp@gmail.com>2023-06-08 16:56:07 +0200
commit89952f7bb678de4c51dcc8f42110fe9ad1f52260 (patch)
treeb161d5391aa89d580107e78840663826c043e38d /nixos/tests/luks.nix
parentff3936e14b727d3a29d1a3212d6919055ac61804 (diff)
nixosTests.luks: mount the host Nix store
Same rationale as in caf6f41e2e1.
Diffstat (limited to 'nixos/tests/luks.nix')
-rw-r--r--nixos/tests/luks.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/tests/luks.nix b/nixos/tests/luks.nix
index c2b95c6a95fbd..d5ac550a3c57d 100644
--- a/nixos/tests/luks.nix
+++ b/nixos/tests/luks.nix
@@ -7,6 +7,8 @@ import ./make-test-python.nix ({ lib, pkgs, ... }: {
       emptyDiskImages = [ 512 512 ];
       useBootLoader = true;
       useEFIBoot = true;
+      # To boot off the encrypted disk, we need to have a init script which comes from the Nix store
+      mountHostNixStore = true;
     };
     boot.loader.systemd-boot.enable = true;