2023-04-01 15:00:59 +00:00
|
|
|
{
|
|
|
|
options,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
with lib; let
|
|
|
|
cfg = config.aa.system.monitoring;
|
|
|
|
in {
|
|
|
|
options.aa.system.monitoring = with types; {
|
|
|
|
enable = mkEnableOption "monitoring";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
htop
|
|
|
|
lm_sensors
|
|
|
|
powertop
|
|
|
|
];
|
|
|
|
|
|
|
|
powerManagement.powertop.enable = true;
|
2023-06-11 01:07:00 +00:00
|
|
|
|
|
|
|
aa.apps.btop.enable = true;
|
2023-04-01 15:00:59 +00:00
|
|
|
};
|
|
|
|
}
|