Added additional kernel params for LUKS
This commit is contained in:
parent
fdb5a0afc4
commit
8c6cfa275a
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user