From 81c293621e312dc7288e429b9a2683f2027d1304 Mon Sep 17 00:00:00 2001 From: Ahurac Date: Mon, 21 Oct 2024 16:47:29 +0200 Subject: [PATCH] feat(ahrc-laptop): tlp -> power-profiles-daemon --- ahrc-laptop/configuration.nix | 34 +--------------------------------- 1 file changed, 1 insertion(+), 33 deletions(-) diff --git a/ahrc-laptop/configuration.nix b/ahrc-laptop/configuration.nix index 0948318..e1f624b 100644 --- a/ahrc-laptop/configuration.nix +++ b/ahrc-laptop/configuration.nix @@ -10,39 +10,7 @@ environment.systemPackages = with pkgs; [ powertop brightnessctl ]; services.libinput.enable = true; - - nixpkgs.overlays = [ - (final: prev: { - tlp = prev.tlp.overrideAttrs (old: { - makeFlags = (old.makeFlags or [ ]) ++ [ - "TLP_ULIB=/lib/udev" - "TLP_NMDSP=/lib/NetworkManager/dispatcher.d" - "TLP_SYSD=/lib/systemd/system" - "TLP_SDSL=/lib/systemd/system-sleep" - "TLP_ELOD=/lib/elogind/system-sleep" - "TLP_CONFDPR=/share/tlp/deprecated.conf" - "TLP_FISHCPL=/share/fish/vendor_completions.d" - "TLP_ZSHCPL=/share/zsh/site-functions" - ]; - }); - }) - ]; - - services.tlp = { - enable = true; - settings = { - CPU_SCALING_GOVERNOR_ON_AC = "performance"; - CPU_SCALING_GOVERNOR_ON_BAT = "powersave"; - - CPU_ENERGY_PERF_POLICY_ON_BAT = "power"; - CPU_ENERGY_PERF_POLICY_ON_AC = "performance"; - - CPU_MIN_PERF_ON_AC = 100; - CPU_MAX_PERF_ON_AC = 100; - CPU_MIN_PERF_ON_BAT = 20; - CPU_MAX_PERF_ON_BAT = 100; - }; - }; + services.power-profiles-daemon.enable = true; programs.bash.promptInit = '' if [ "$(whoami)" = root ]; then