allowDiscards on luks

This commit is contained in:
Christoph Cullmann 2024-08-24 18:38:21 +02:00
parent f9a4d28230
commit a83ad0f2eb
No known key found for this signature in database
3 changed files with 24 additions and 6 deletions

View file

@ -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";