From dd50c4b4e5773e5da28bf6b9a78254331ede52df Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 2 Oct 2026 17:35:53 +0200 Subject: [PATCH] feature(disk): allow discards on cryptroot --- hosts/neon/hardware-configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/neon/hardware-configuration.nix b/hosts/neon/hardware-configuration.nix index ee79eda..e115731 100644 --- a/hosts/neon/hardware-configuration.nix +++ b/hosts/neon/hardware-configuration.nix @@ -25,7 +25,11 @@ "dm-snapshot" "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.extraModulePackages = [ ];