run cpupower with NOPASSWD
This commit is contained in:
parent
e588bae35d
commit
2d84bd3201
2 changed files with 4 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, pkgs, ... }: {
|
{ config, lib, pkgs, ... }: {
|
||||||
|
|
||||||
imports = [
|
imports = [
|
||||||
./filesystem.nix
|
./filesystem.nix
|
||||||
|
@ -73,6 +73,8 @@
|
||||||
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;
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
kernelModules = [ "i915" ];
|
kernelModules = [ "i915" ];
|
||||||
};
|
};
|
||||||
kernelModules = [ "kvm-intel" ];
|
kernelModules = [ "kvm-intel" ];
|
||||||
kernelPackages = pkgs.linuxPackages_zen;
|
kernelPackages = pkgs.linuxKernel.packages.linux_zen;
|
||||||
};
|
};
|
||||||
|
|
||||||
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
|
|
Loading…
Reference in a new issue