testing the new config before pushing to main
This commit is contained in:
parent
a545953c2d
commit
c53123d2c5
38 changed files with 370 additions and 198 deletions
32
system/modules/hardware/power.nix
Normal file
32
system/modules/hardware/power.nix
Normal 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;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue