diff options
Diffstat (limited to 'mini')
-rw-r--r-- | mini/hardware-configuration.nix | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix index 368766f..2f837f3 100644 --- a/mini/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -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"; |