Removed encryption on root partition
Some checks failed
NixOS Configuration Check / nixos-check (push) Failing after 23s

This commit is contained in:
Luke Else 2025-04-24 19:53:21 +01:00
parent 3106cd4b62
commit e9416202dd

View File

@ -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";
};