Added powertop config
This commit is contained in:
parent
b5fedaa885
commit
5c27dda9aa
20
modules/monitoring/powertop/default.nix
Normal file
20
modules/monitoring/powertop/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
|
@ -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"];
|
||||||
|
|
Loading…
Reference in a new issue