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,8 +19,14 @@
};
# /nix encrypted btrfs for the remaining space
boot.initrd.luks.devices."crypt0".device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
boot.initrd.luks.devices."crypt1".device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
boot.initrd.luks.devices."crypt0" = {
device = "/dev/disk/by-id/nvme-CT4000P3PSSD8_2325E6E63746-part2";
allowDiscards = true;
};
boot.initrd.luks.devices."crypt1" = {
device = "/dev/disk/by-id/ata-CT2000MX500SSD1_2138E5D5061F";
allowDiscards = true;
};
fileSystems."/nix" =
{ device = "/dev/mapper/crypt0";
fsType = "btrfs";