mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 05:53:56 -05:00
hardware/laptop: power-profiles-daemon -> tlp
This commit is contained in:
parent
4b083899e1
commit
71a606119c
|
@ -6,8 +6,26 @@
|
||||||
}: {
|
}: {
|
||||||
config = lib.mkIf config.ar.hardware.laptop {
|
config = lib.mkIf config.ar.hardware.laptop {
|
||||||
services = {
|
services = {
|
||||||
power-profiles-daemon.enable = true;
|
power-profiles-daemon.enable = lib.mkDefault false;
|
||||||
upower.enable = true;
|
upower.enable = true;
|
||||||
|
tlp = {
|
||||||
|
enable = !config.services.power-profiles-daemon.enable;
|
||||||
|
settings = {
|
||||||
|
BAY_POWEROFF_ON_AC = 0;
|
||||||
|
BAY_POWEROFF_ON_BAT = 1;
|
||||||
|
CPU_BOOST_ON_AC = 1;
|
||||||
|
CPU_BOOST_ON_BAT = 0;
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_AC = "balance_performance";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "power";
|
||||||
|
CPU_HWP_DYN_BOOST_ON_AC = 1;
|
||||||
|
CPU_HWP_DYN_BOOST_ON_BAT = 0;
|
||||||
|
PLATFORM_PROFILE_ON_AC = "balanced";
|
||||||
|
PLATFORM_PROFILE_ON_BAT = "low-power";
|
||||||
|
RESTORE_DEVICE_STATE_ON_STARTUP = 1;
|
||||||
|
TLP_DEFAULT_MODE = "AC";
|
||||||
|
TLP_PERSISTENT_DEFAULT = 0;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
hardware = {
|
hardware = {
|
||||||
acpilight.enable = true;
|
acpilight.enable = true;
|
||||||
enableAllFirmware = true;
|
enableAllFirmware = true;
|
||||||
|
|
||||||
sensor.iio.enable = true;
|
sensor.iio.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue