testing the new config before pushing to main

This commit is contained in:
ooks-io 2024-01-19 20:28:53 +13:00
parent a545953c2d
commit c53123d2c5
38 changed files with 370 additions and 198 deletions

View file

@ -0,0 +1,32 @@
{ lib, config, ... }:
let
cfg = config.systemModules.hardware.power;
in
{
config = lib.mkIf cfg.enable {
services.system76-scheduler.settings.cfsProfiles.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";
};
};
services = {
upower.enable = true;
thermald.enable = true;
power-profiles-daemon.enable = false;
logind = {
lidSwitch = "suspend";
};
};
powerManagement.powertop.enable = true;
};
}