Add cpufreq configuration for laptops
This commit is contained in:
parent
360533b7e8
commit
037fef7c48
2 changed files with 16 additions and 0 deletions
|
@ -29,6 +29,7 @@
|
||||||
if hostConfig.laptop then
|
if hostConfig.laptop then
|
||||||
[
|
[
|
||||||
./includes/hardware/iwd.nix
|
./includes/hardware/iwd.nix
|
||||||
|
./includes/hardware/cpufreq.nix
|
||||||
]
|
]
|
||||||
else []
|
else []
|
||||||
);
|
);
|
||||||
|
|
15
nixos/includes/hardware/cpufreq.nix
Normal file
15
nixos/includes/hardware/cpufreq.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
services.auto-cpufreq = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
battery = {
|
||||||
|
governor = "powersave";
|
||||||
|
turbo = "never";
|
||||||
|
};
|
||||||
|
charger = {
|
||||||
|
governor = "performance";
|
||||||
|
turbo = "never";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue