From 6aff8870a39bab16e6a12dc2cf16a5e57c286c98 Mon Sep 17 00:00:00 2001 From: Aditya Date: Thu, 9 Nov 2023 00:08:34 +0530 Subject: [PATCH] allow discard --- configuration.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configuration.nix b/configuration.nix index d1e3d20..9500158 100644 --- a/configuration.nix +++ b/configuration.nix @@ -50,6 +50,10 @@ flake-overlays: # Enable swap on luks boot.initrd.luks.devices."luks-c0ef1093-a74e-4491-8c73-0009d3377c19".device = "/dev/disk/by-uuid/c0ef1093-a74e-4491-8c73-0009d3377c19"; boot.initrd.luks.devices."luks-c0ef1093-a74e-4491-8c73-0009d3377c19".keyFile = "/crypto_keyfile.bin"; + boot.initrd.luks.devices."luks-c0ef1093-a74e-4491-8c73-0009d3377c19".allowDiscards = true; + + # Allow discard on / + boot.initrd.luks.devices."luks-8c3d3196-26a2-4c79-8e1e-11160951ba8c".allowDiscards = true; networking.hostName = "bridge"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.