feature(trim): add trim support and change partuuid to disk-labels

This commit is contained in:
2026-10-02 17:34:45 +02:00
parent fc4f0afc46
commit 8a1067b324
2 changed files with 11 additions and 6 deletions
+9 -6
View File
@@ -22,18 +22,21 @@
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ "dm-crypt dm-mod" ];
boot.initrd.luks.devices."cryptroot".device = "/dev/disk/by-label/nixcrypt";
boot.initrd.luks.devices."cryptroot" = {
device = "/dev/disk/by-label/nixcrypt";
allowDiscards = true;
bypassWorkqueues = true;
};
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
fileSystems."/" = {
device = "/dev/mapper/lvmroot-root";
device = "/dev/disk/by-label/nixroot";
fsType = "ext4";
};
fileSystems."/boot" = {
device = "/dev/disk/by-uuid/AC1C-20EB";
device = "/dev/disk/by-label/nixboot";
fsType = "vfat";
options = [
"fmask=0022"
@@ -42,12 +45,12 @@
};
fileSystems."/home" = {
device = "/dev/mapper/lvmroot-home";
device = "/dev/disk/by-label/nixhome";
fsType = "ext4";
};
swapDevices = [
{ device = "/dev/mapper/lvmroot-swap"; }
{ device = "/dev/disk/by-label/nixswap"; }
];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";