summaryrefslogtreecommitdiff
path: root/beta
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 /beta
parentf9a4d28230a64b986d603bd9b0299251d5a71e46 (diff)
allowDiscards on luks
Diffstat (limited to 'beta')
-rw-r--r--beta/hardware-configuration.nix5
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";