update: enable powertop
This commit is contained in:
parent
09281dd0e7
commit
c91e249190
2 changed files with 11 additions and 0 deletions
9
nixosModules/programs/powertop.nix
Normal file
9
nixosModules/programs/powertop.nix
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
{ config, lib, ... }: {
|
||||
options = {
|
||||
settings.programs.powertop.enable = lib.mkEnableOption "enables powertop";
|
||||
};
|
||||
|
||||
config = lib.mkIf config.settings.programs.powertop.enable {
|
||||
powerManagement.powertop.enable = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue