diff --git a/flake.nix b/flake.nix index 252c953..c703f6c 100644 --- a/flake.nix +++ b/flake.nix @@ -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; + }; + }; }) ]; diff --git a/nixos/stylix/stylix.nix b/nixos/stylix/stylix.nix index 8daf6de..ae8b3fa 100644 --- a/nixos/stylix/stylix.nix +++ b/nixos/stylix/stylix.nix @@ -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}"