From 6a2ae59456b6f45546de66c1c97eb159b35b892b Mon Sep 17 00:00:00 2001 From: Sandro Date: Tue, 12 Nov 2024 16:53:46 +0100 Subject: [PATCH] nixos/luksroot: make it harder to accidentially break cryptsetup (cherry picked from commit b861831405b0799cd74e8f74a61c91368a228477) --- nixos/modules/system/boot/luksroot.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/system/boot/luksroot.nix b/nixos/modules/system/boot/luksroot.nix index 70b455871b4b..c1a5e9c3877d 100644 --- a/nixos/modules/system/boot/luksroot.nix +++ b/nixos/modules/system/boot/luksroot.nix @@ -1094,6 +1094,7 @@ in }; # We do this because we need the udev rules from the package + services.lvm.enable = true; boot.initrd.services.lvm.enable = true; boot.initrd.preFailCommands = mkIf (!config.boot.initrd.systemd.enable) postCommands;