From 36df179501afc7c7bab748687d08002f608309cb Mon Sep 17 00:00:00 2001 From: Chandler Swift Date: Sun, 21 Dec 2025 11:41:35 -0600 Subject: [PATCH] Set allowDiscards to enable NVMe TRIM --- bert/hardware-configuration.nix | 5 ++++- oscar/hardware-configuration.nix | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/bert/hardware-configuration.nix b/bert/hardware-configuration.nix index bd11bff..1d01430 100644 --- a/bert/hardware-configuration.nix +++ b/bert/hardware-configuration.nix @@ -18,7 +18,10 @@ fsType = "ext4"; }; - boot.initrd.luks.devices."luks-da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc".device = "/dev/disk/by-uuid/da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc"; + boot.initrd.luks.devices."luks-da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc" = { + device = "/dev/disk/by-uuid/da40f6d2-49d7-4a55-8a2e-94fa5f28dbbc"; + allowDiscards = true; + }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/B684-07FB"; diff --git a/oscar/hardware-configuration.nix b/oscar/hardware-configuration.nix index a950bd3..4ab4ac4 100644 --- a/oscar/hardware-configuration.nix +++ b/oscar/hardware-configuration.nix @@ -32,7 +32,10 @@ fsType = "ext4"; }; - boot.initrd.luks.devices."luks-8ecd33f4-36cf-44f2-b215-5e67887418b9".device = "/dev/disk/by-uuid/8ecd33f4-36cf-44f2-b215-5e67887418b9"; + boot.initrd.luks.devices."luks-8ecd33f4-36cf-44f2-b215-5e67887418b9" = { + device = "/dev/disk/by-uuid/8ecd33f4-36cf-44f2-b215-5e67887418b9"; + allowDiscards = true; + }; fileSystems."/boot" = { device = "/dev/disk/by-uuid/24AC-733A";