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
|
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
|
||||||
|
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue