don't set governor

This commit is contained in:
Adithya 2023-04-06 02:39:39 +05:30
parent 73bbbb7ffd
commit d978d53712
Signed by: adtya
GPG key ID: 48FC9915FFD326D0
2 changed files with 0 additions and 4 deletions

View file

@ -12,11 +12,9 @@ fi
case "$1" in case "$1" in
"toggle") "toggle")
if [ "$POWER_PROFILE" == "powersave" ]; then if [ "$POWER_PROFILE" == "powersave" ]; then
cpupower frequency-set --governor performance > /dev/null
powerprofilesctl set performance powerprofilesctl set performance
POWER_PROFILE="performance" POWER_PROFILE="performance"
elif [ "$POWER_PROFILE" == "performance" ]; then elif [ "$POWER_PROFILE" == "performance" ]; then
cpupower frequency-set --governor powersave > /dev/null
powerprofilesctl set power-saver powerprofilesctl set power-saver
POWER_PROFILE="powersave" POWER_PROFILE="powersave"
fi fi

View file

@ -81,8 +81,6 @@
package = pkgs.sudo.override { withInsults = true; }; package = pkgs.sudo.override { withInsults = true; };
extraConfig = '' extraConfig = ''
Defaults lecture="never" Defaults lecture="never"
%wheel ALL=NOPASSWD: ${config.boot.kernelPackages.cpupower}/bin/cpupower
''; '';
wheelNeedsPassword = true; wheelNeedsPassword = true;
}; };