From d978d53712f85bbbf74e054a41ab30860e3e54b2 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Thu, 6 Apr 2023 02:39:39 +0530 Subject: [PATCH] don't set governor --- packages/scripts/power-profiles.sh | 2 -- system/default.nix | 2 -- 2 files changed, 4 deletions(-) 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; };