Removed encryption on root partition
Some checks failed
NixOS Configuration Check / nixos-check (push) Failing after 23s
Some checks failed
NixOS Configuration Check / nixos-check (push) Failing after 23s
This commit is contained in:
parent
3106cd4b62
commit
e9416202dd
@ -8,26 +8,13 @@
|
||||
efi.canTouchEfiVariables = true;
|
||||
};
|
||||
|
||||
# Enable support for LUKS
|
||||
initrd = {
|
||||
luks.devices = {
|
||||
"root" = {
|
||||
device = "/dev/sda1"; # Encrypted root partition
|
||||
preLVM = true;
|
||||
allowDiscards = true; # Enable if using an SSD with TRIM support
|
||||
};
|
||||
};
|
||||
systemd.enable = true; # Required for LUKS support
|
||||
availableKernelModules = [ "dm-crypt" "dm-mod" "ext4" ]; # Required for LUKS support
|
||||
};
|
||||
|
||||
# Kernel parameters for root and cryptsetup
|
||||
kernelParams = [ "root=/dev/mapper/root" "cryptdevice=/dev/sda1:root" ];
|
||||
# Kernel parameters for root
|
||||
kernelParams = [ "root=/dev/sda1" ];
|
||||
};
|
||||
|
||||
# File systems
|
||||
fileSystems."/" = {
|
||||
device = "/dev/mapper/root"; # LUKS unlocked device
|
||||
device = "/dev/sda1"; # root partition
|
||||
fsType = "ext4";
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user