From cc396a6cb031f2fde3f70fa1bfe644037ad0f580 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 17 Dec 2018 01:12:29 +0100 Subject: [PATCH] ma hw/ssd: init --- 2configs/hw/ssd.nix | 4 ++++ 2configs/hw/tp-x2x0.nix | 2 ++ 2 files changed, 6 insertions(+) create mode 100644 2configs/hw/ssd.nix diff --git a/2configs/hw/ssd.nix b/2configs/hw/ssd.nix new file mode 100644 index 0000000..9615b34 --- /dev/null +++ b/2configs/hw/ssd.nix @@ -0,0 +1,4 @@ +{ + # ssd trimming + services.fstrim.enable = true; +} diff --git a/2configs/hw/tp-x2x0.nix b/2configs/hw/tp-x2x0.nix index 98fe30d..42ae309 100644 --- a/2configs/hw/tp-x2x0.nix +++ b/2configs/hw/tp-x2x0.nix @@ -4,6 +4,7 @@ with import ; { imports = [ ./tpm.nix + ./ssd.nix ]; boot.kernelModules = [ @@ -50,6 +51,7 @@ with import ; CPU_MAX_PERF_ON_BAT=30 ''; + powerManagement.resumeCommands = '' ${pkgs.rfkill}/bin/rfkill unblock all '';