From e6b3092a95ee88afc61453e138c28f7e33417de3 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sat, 6 Jun 2020 01:10:03 +0200 Subject: [PATCH 1/2] remove unneeded system packages --- nixos/packages.nix | 2 -- 1 file changed, 2 deletions(-) diff --git a/nixos/packages.nix b/nixos/packages.nix index 97ebe04..c2ccaf2 100644 --- a/nixos/packages.nix +++ b/nixos/packages.nix @@ -21,8 +21,6 @@ strace ltrace valgrind - lzop - p7zip testdisk rsync pv From e8eeba5ba2ac856fd158b70c1dbe65ffe1d6dd72 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Sat, 6 Jun 2020 01:40:46 +0200 Subject: [PATCH 2/2] allow discards (TRIM) on all LUKS devices --- nixos/hardware-configuration.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/hardware-configuration.nix b/nixos/hardware-configuration.nix index a745282..5b0fc8f 100644 --- a/nixos/hardware-configuration.nix +++ b/nixos/hardware-configuration.nix @@ -24,6 +24,8 @@ in boot.initrd.luks = { devices = + # allow discards on all devices + builtins.mapAttrs (name: val: val // {allowDiscards = true;}) { "system".device = "/dev/disk/by-uuid/85154131-b2a8-4ef5-9d74-47429cb267ef"; "cryptswap".device = "/dev/disk/by-uuid/ac586df6-6332-4809-beb1-f51906a2adaa";