diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-09-04 18:37:28 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-09-04 18:39:44 +0200 |
| commit | cf0c788e29dca22c9615a2bd9a1153a454b60161 (patch) | |
| tree | 6ac6c019d48bc4971cc21868801b7958d50331b9 | |
| parent | hosts/apzu: Disable power management via tlp (diff) | |
| download | nixos-config-cf0c788e29dca22c9615a2bd9a1153a454b60161.zip | |
Diffstat (limited to '')
| -rw-r--r-- | hosts/by-name/apzu/configuration.nix | 2 | ||||
| -rw-r--r-- | modules/by-name/po/power/module.nix | 29 |
2 files changed, 16 insertions, 15 deletions
diff --git a/hosts/by-name/apzu/configuration.nix b/hosts/by-name/apzu/configuration.nix index 62e939e8..9e5d97f0 100644 --- a/hosts/by-name/apzu/configuration.nix +++ b/hosts/by-name/apzu/configuration.nix @@ -24,7 +24,7 @@ "/var/log" ]; - power.enable = false; + power.enable = true; programs = { starship.showBattery = true; 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"; + # }; + # }; }; }; } |
