don't set governor
This commit is contained in:
parent
73bbbb7ffd
commit
d978d53712
2 changed files with 0 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue