feature(disk): allow discards on cryptroot

This commit is contained in:
2026-10-02 17:35:53 +02:00
parent 8a1067b324
commit dd50c4b4e5
+5 -1
View File
@@ -25,7 +25,11 @@
"dm-snapshot" "dm-snapshot"
"cryptd" "cryptd"
]; ];
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 = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];