From 844cad9621b9d6b05f9b0783e6199620c71511d1 Mon Sep 17 00:00:00 2001 From: Trolli Schmittlauch Date: Thu, 11 Oct 2018 15:44:44 +0200 Subject: [PATCH] /tmp on tmpfs; tlp tweaks against power ata errors --- nixos/configuration.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/nixos/configuration.nix b/nixos/configuration.nix index 097d9fc..2721ee4 100644 --- a/nixos/configuration.nix +++ b/nixos/configuration.nix @@ -27,11 +27,19 @@ in { fileSystems."/".options = fsOptions ++ [ "subvol=nixos_root" ]; fileSystems."/home".options = fsOptions ++ [ "subvol=home" ]; + boot.tmpOnTmpfs = true; + fileSystems."/tmp".fsType = "tmpfs"; services.fstrim.enable = true; # powermanagement - services.tlp.enable = true; + services.tlp = + { enable = true; + extraConfig = '' + SATA_LINKPWR_ON_BAT=medium_power + SATA_LINKPWR_ON_AC=max_performance + ''; + }; #powerManagement.powertop.enable = true; # Use the systemd-boot EFI boot loader.