From 443cf971238c9b2d01aee76219827cef4e5e926b Mon Sep 17 00:00:00 2001 From: Nathan McCarty Date: Mon, 13 Jan 2025 21:11:31 -0500 Subject: [PATCH] More power stuff --- nixos/machines/crash/configuration.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/nixos/machines/crash/configuration.nix b/nixos/machines/crash/configuration.nix index 22e7c76..5aa548d 100644 --- a/nixos/machines/crash/configuration.nix +++ b/nixos/machines/crash/configuration.nix @@ -175,6 +175,21 @@ enable = true; }; + # Other power saving goodies + hardware.enableAllFirmware = true; + services.tlp = { + enable = true; + settings = { + CPU_SCALING_GOVERNOR_ON_AC = "performance"; + CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + + CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; + CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; + }; + }; + powerManagement.enable = true; + services.power-profiles-daemon.enable = false; + # Nvidia gpu setup hardware.nvidia = { open = true;