28 lines
615 B
Nix
28 lines
615 B
Nix
{ inputs, ...}: {
|
|
flake-file.inputs.auto-cpufreq = {
|
|
url = "github:AdnanHodzic/auto-cpufreq";
|
|
inputs.nixpkgs.follows = "nixpkgs";
|
|
};
|
|
den.aspects.system.hardware.autocpufreq = {
|
|
nixos = {
|
|
imports = [ inputs.auto-cpufreq.nixosModules.default ];
|
|
|
|
services.power-profiles-daemon.enable = false;
|
|
|
|
programs.auto-cpufreq.enable = true;
|
|
|
|
programs.auto-cpufreq.settings = {
|
|
charger = {
|
|
governor = "performance";
|
|
turbo = "auto";
|
|
};
|
|
|
|
battery = {
|
|
governor = "powersave";
|
|
turbo = "auto";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|