From cf0c788e29dca22c9615a2bd9a1153a454b60161 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Fri, 4 Sep 2026 18:37:28 +0200 Subject: hosts/apzu: Enable power saving again (but this time with tuned) --- modules/by-name/po/power/module.nix | 29 +++++++++++++++-------------- 1 file changed, 15 insertions(+), 14 deletions(-) (limited to 'modules/by-name/po') diff --git a/modules/by-name/po/power/module.nix b/modules/by-name/po/power/module.nix index 3489853c..5a547101 100644 --- a/modules/by-name/po/power/module.nix +++ b/modules/by-name/po/power/module.nix @@ -21,22 +21,23 @@ in { config = lib.mkIf cfg.enable { # see this for reference: https://github.com/NixOS/nixpkgs/issues/211345 services = { - # conflicts with tlp - power-profiles-daemon.enable = false; - - thermald.enable = true; - - tlp = { + tuned = { enable = true; - settings = { - CPU_BOOST_ON_AC = 1; - CPU_BOOST_ON_BAT = 0; - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - SATA_LINKPWR_ON_AC = "max_performance"; - SATA_LINKPWR_ON_BAT = "min_power"; - }; }; + + # thermald.enable = true; + # + # tlp = { + # enable = true; + # settings = { + # CPU_BOOST_ON_AC = 1; + # CPU_BOOST_ON_BAT = 0; + # CPU_SCALING_GOVERNOR_ON_AC = "performance"; + # CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; + # SATA_LINKPWR_ON_AC = "max_performance"; + # SATA_LINKPWR_ON_BAT = "min_power"; + # }; + # }; }; }; } -- cgit v1.3.1