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;
};
}

View file

@ -43,6 +43,8 @@
hardware.audio.enable = true; hardware.audio.enable = true;
system.zfs.enable = true; system.zfs.enable = true;
monitoring.powertop.enable = true;
}; };
boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"]; boot.binfmt.emulatedSystems = ["aarch64-linux" "armv6l-linux"];