From e9416202dd15b3370bbf5a18379ee8a6fefdde06 Mon Sep 17 00:00:00 2001 From: Luke Else Date: Thu, 24 Apr 2025 19:53:21 +0100 Subject: [PATCH] Removed encryption on root partition --- modules/common.nix | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/modules/common.nix b/modules/common.nix index b001c44..22a4193 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -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"; };