use tlp instead of auto-cpufreq

This commit is contained in:
lucy 2026-08-19 16:13:24 +02:00
commit b0740ce735
2 changed files with 17 additions and 3 deletions

View file

@ -61,12 +61,26 @@
home-manager.useGlobalPkgs = true;
home-manager.extraSpecialArgs = { inherit inputs; };
}
({ lib, pkgs, ... }: {
({ lib, ... }: {
boot.loader.systemd-boot.enable = true;
networking.hostName = lib.mkForce "seele";
powerManagement.powertop.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;
};
};
})
];

View file

@ -28,7 +28,7 @@ let
map (n: "${dir}/${n}/${platform}.nix") (
builtins.filter (n: builtins.pathExists "${dir}/${n}/${platform}.nix") drop
);
palette = "catppuccin-mocha";
palette = "gruvbox-dark-hard";
stylixPalette = lib.strings.concatStrings [
"${pkgs.base16-schemes}/share/themes/"
"${palette}"