Added additional kernel params for LUKS

This commit is contained in:
Luke Else 2025-03-21 12:55:01 +00:00
parent fdb5a0afc4
commit 8c6cfa275a

View File

@ -18,9 +18,15 @@
};
};
systemd.enable = true; # Required for LUKS support
availableKernelModules = [ "dm-crypt" "dm-mod", "ext4" ]; # Required for LUKS support
};
kernelParams = [ "root=/dev/mapper/root" "cryptdevice=/dev/sda1:root" ]; # Required for LUKS support
};
environment.systemPackages = with pkgs; [
cryptsetup
];
# File systems
fileSystems."/" = {
device = "/dev/mapper/root"; # LUKS unlocked device