From a83ad0f2eb709fbcf6860c746654dca35ab42661 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 24 Aug 2024 18:38:21 +0200 Subject: allowDiscards on luks --- beta/hardware-configuration.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'beta') diff --git a/beta/hardware-configuration.nix b/beta/hardware-configuration.nix index 4f4155d..215e221 100644 --- a/beta/hardware-configuration.nix +++ b/beta/hardware-configuration.nix @@ -19,7 +19,10 @@ }; # /nix encrypted btrfs for the remaining space - boot.initrd.luks.devices."crypt0".device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2"; + boot.initrd.luks.devices."crypt0" = { + device = "/dev/disk/by-id/nvme-SAMSUNG_MZVLB1T0HBLR-000L2_S4DZNX0R362286-part2"; + allowDiscards = true; + }; fileSystems."/nix" = { device = "/dev/mapper/crypt0"; fsType = "btrfs"; -- cgit v1.2.3