nixos/hosts/common/optional/powersave.nix
Sam 37210af3b9 Add Kodi package and refactor power savings configuration
- Add Kodi package to Citadel's home manager configuration
- Remove power savings configuration from Citadel's default configuration
- Create new optional powersave configuration file for common hosts
2024-11-26 20:25:11 +00:00

16 lines
361 B
Nix

{pkgs, ...}: {
environment.systemPackages = [
pkgs.linuxKernel.packages.linux_zen.cpupower
pkgs.lm_sensors
];
services.tlp = {
enable = true;
settings = {
CPU_SCALING_GOVERNOR_ON_AC = "ondemand";
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
START_CHARGE_THRESH_BAT0 = 60;
STOP_CHARGE_THRESH_BAT0 = 85;
};
};
}