From 6435add6c4a50a0a22f695c6cfa4a10884fdea6a Mon Sep 17 00:00:00 2001 From: Gabriel Ebner Date: Thu, 3 Sep 2015 10:41:18 +0200 Subject: [PATCH] archachatina: enable trim --- archachatina.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/archachatina.nix b/archachatina.nix index 5016bc7..7282431 100644 --- a/archachatina.nix +++ b/archachatina.nix @@ -7,7 +7,19 @@ ./uefi.nix ]; - boot.initrd.luks.devices = [ { name = "sda2_crypt"; device = "/dev/disk/by-uuid/663dcfda-081e-40d5-9ba4-62ad73dc5098"; preLVM = true; } ]; + environment.etc."lvm/lvm.conf".text = '' + devices { + issue_discards = 1 + } + ''; + boot.initrd.luks.devices = [ + { + name = "sda2_crypt"; + device = "/dev/disk/by-uuid/663dcfda-081e-40d5-9ba4-62ad73dc5098"; + preLVM = true; + allowDiscards = true; + } + ]; networking.hostName = "archachatina"; # Define your hostname. networking.hostId = "cc7ea3ba";