summaryrefslogtreecommitdiff
path: root/neko
diff options
context:
space:
mode:
authorChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:38:21 +0200
committerChristoph Cullmann <christoph@cullmann.io>2024-08-24 18:38:21 +0200
commita83ad0f2eb709fbcf6860c746654dca35ab42661 (patch)
treeb01ed66c612a1f687b6d138510f060d5b8241295 /neko
parentf9a4d28230a64b986d603bd9b0299251d5a71e46 (diff)
allowDiscards on luks
Diffstat (limited to 'neko')
-rw-r--r--neko/hardware-configuration.nix15
1 files changed, 12 insertions, 3 deletions
diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix
index 60f0994..86705cb 100644
--- a/neko/hardware-configuration.nix
+++ b/neko/hardware-configuration.nix
@@ -19,9 +19,18 @@
};
# /nix encrypted btrfs for the remaining space
- boot.initrd.luks.devices."crypt0".device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2";
- boot.initrd.luks.devices."crypt1".device = "/dev/disk/by-id/nvme-CT2000P5PSSD8_213330E4ED05";
- boot.initrd.luks.devices."crypt2".device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L";
+ boot.initrd.luks.devices."crypt0" = {
+ device = "/dev/disk/by-id/nvme-Seagate_FireCuda_530_ZP4000GM30013_7VS01VBM-part2";
+ allowDiscards = true;
+ };
+ boot.initrd.luks.devices."crypt1" = {
+ device = "/dev/disk/by-id/nvme-CT2000P5PSSD8_213330E4ED05";
+ allowDiscards = true;
+ };
+ boot.initrd.luks.devices."crypt2" = {
+ device = "/dev/disk/by-id/nvme-Samsung_SSD_980_PRO_2TB_S69ENF0R846614L";
+ allowDiscards = true;
+ };
fileSystems."/nix" =
{ device = "/dev/mapper/crypt0";
fsType = "btrfs";