Added powertop config

This commit is contained in:
Alejandro Angulo 2023-03-26 10:11:18 -07:00
parent b5fedaa885
commit 5c27dda9aa
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,20 @@
{
options,
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.aa.monitoring.powertop;
in {
options.aa.monitoring.powertop = with types; {
enable = mkEnableOption "powertop";
};
config = mkIf cfg.enable {
environment.systemPackages = with pkgs; [powertop];
powerManagement.powertop.enable = true;
};
}