dotfiles/nixos/modules/battery.nix
Bart van der Braak ab338d3b15
Big refactor (#8)
* Update to 24.11 channel and add `ghostty`

* full restructure

* minor changes

* fix issues

* fixes and improvements

* Add back some old config

* working example for now
2025-01-21 22:26:22 +01:00

16 lines
No EOL
325 B
Nix

{ pkgs, ... }:
{
services.power-profiles-daemon.enable = false;
services.thermald.enable = true;
services.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";
};
};
}