mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-01-21 22:11:33 +01:00
Rename modules auto-cpufreq and boot-loader
This commit is contained in:
parent
e50ba91241
commit
bb1a8c5b44
4 changed files with 8 additions and 8 deletions
25
modules/system/auto-cpufreq.nix
Normal file
25
modules/system/auto-cpufreq.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
options.myConfig.auto-cpufreq.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf config.myConfig.auto-cpufreq.enable {
|
||||
services.auto-cpufreq = {
|
||||
enable = true;
|
||||
settings = {
|
||||
charger = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
energy_performance_preference = "power";
|
||||
};
|
||||
battery = {
|
||||
governor = "powersave";
|
||||
turbo = "never";
|
||||
energy_performance_preference = "power";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue