diff options
author | Christoph Cullmann <christoph@cullmann.io> | 2024-08-24 18:38:21 +0200 |
---|---|---|
committer | Christoph Cullmann <christoph@cullmann.io> | 2024-08-24 18:38:21 +0200 |
commit | a83ad0f2eb709fbcf6860c746654dca35ab42661 (patch) | |
tree | b01ed66c612a1f687b6d138510f060d5b8241295 /beta | |
parent | f9a4d28230a64b986d603bd9b0299251d5a71e46 (diff) |
allowDiscards on luks
Diffstat (limited to 'beta')
-rw-r--r-- | beta/hardware-configuration.nix | 5 |
1 files changed, 4 insertions, 1 deletions
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"; |