use tlp instead of auto-cpufreq
This commit is contained in:
parent
1cbc23c73a
commit
b0740ce735
2 changed files with 17 additions and 3 deletions
18
flake.nix
18
flake.nix
|
|
@ -61,12 +61,26 @@
|
||||||
home-manager.useGlobalPkgs = true;
|
home-manager.useGlobalPkgs = true;
|
||||||
home-manager.extraSpecialArgs = { inherit inputs; };
|
home-manager.extraSpecialArgs = { inherit inputs; };
|
||||||
}
|
}
|
||||||
({ lib, pkgs, ... }: {
|
({ lib, ... }: {
|
||||||
boot.loader.systemd-boot.enable = true;
|
boot.loader.systemd-boot.enable = true;
|
||||||
networking.hostName = lib.mkForce "seele";
|
networking.hostName = lib.mkForce "seele";
|
||||||
powerManagement.powertop.enable = true;
|
powerManagement.powertop.enable = true;
|
||||||
services.upower.enable = true;
|
services.upower.enable = true;
|
||||||
services.auto-cpufreq.enable = true;
|
services.tlp = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
CPU_SCALING_GOVERNOR_ON_AC = "performance";
|
||||||
|
CPU_SCALING_GOVERNOR_ON_BAT = "powersave";
|
||||||
|
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_BAT = "balanced";
|
||||||
|
CPU_ENERGY_PERF_POLICY_ON_AC = "performance";
|
||||||
|
|
||||||
|
CPU_MIN_PERF_ON_AC = 0;
|
||||||
|
CPU_MAX_PERF_ON_AC = 100;
|
||||||
|
CPU_MIN_PERF_ON_BAT = 0;
|
||||||
|
CPU_MAX_PERF_ON_BAT = 80;
|
||||||
|
};
|
||||||
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -28,7 +28,7 @@ let
|
||||||
map (n: "${dir}/${n}/${platform}.nix") (
|
map (n: "${dir}/${n}/${platform}.nix") (
|
||||||
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
|
||||||
);
|
);
|
||||||
palette = "catppuccin-mocha";
|
palette = "gruvbox-dark-hard";
|
||||||
stylixPalette = lib.strings.concatStrings [
|
stylixPalette = lib.strings.concatStrings [
|
||||||
"${pkgs.base16-schemes}/share/themes/"
|
"${pkgs.base16-schemes}/share/themes/"
|
||||||
"${palette}"
|
"${palette}"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue