diff --git a/decoysnail.nix b/decoysnail.nix index c608f17..3d368cd 100644 --- a/decoysnail.nix +++ b/decoysnail.nix @@ -9,6 +9,11 @@ ./fstrim.nix ]; + environment.etc."lvm/lvm.conf".text = '' + devices { + issue_discards = 1 + } + ''; boot.initrd.luks.devices = [ { name = "sda2_crypt"; @@ -19,6 +24,7 @@ name = "sdb2_crypt"; device = "/dev/disk/by-uuid/d3485d00-8399-40cc-8bce-80b9bd24e63a"; preLVM = true; + allowDiscards = true; } ];