diff --git a/packages/scripts/power-profiles.sh b/packages/scripts/power-profiles.sh index 343aede..fc64861 100644 --- a/packages/scripts/power-profiles.sh +++ b/packages/scripts/power-profiles.sh @@ -12,11 +12,9 @@ fi case "$1" in "toggle") if [ "$POWER_PROFILE" == "powersave" ]; then - cpupower frequency-set --governor performance > /dev/null powerprofilesctl set performance POWER_PROFILE="performance" elif [ "$POWER_PROFILE" == "performance" ]; then - cpupower frequency-set --governor powersave > /dev/null powerprofilesctl set power-saver POWER_PROFILE="powersave" fi diff --git a/system/default.nix b/system/default.nix index 8cbe34b..556b8fc 100644 --- a/system/default.nix +++ b/system/default.nix @@ -81,8 +81,6 @@ package = pkgs.sudo.override { withInsults = true; }; extraConfig = '' Defaults lecture="never" - - %wheel ALL=NOPASSWD: ${config.boot.kernelPackages.cpupower}/bin/cpupower ''; wheelNeedsPassword = true; };