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;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable support for LUKS
|
# Kernel parameters for root
|
||||||
initrd = {
|
kernelParams = [ "root=/dev/sda1" ];
|
||||||
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" ];
|
|
||||||
};
|
};
|
||||||
|
|
||||||
# File systems
|
# File systems
|
||||||
fileSystems."/" = {
|
fileSystems."/" = {
|
||||||
device = "/dev/mapper/root"; # LUKS unlocked device
|
device = "/dev/sda1"; # root partition
|
||||||
fsType = "ext4";
|
fsType = "ext4";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user