2023-04-01 15:00:59 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
2024-07-29 05:33:20 +00:00
|
|
|
}: let
|
|
|
|
inherit (lib) mkIf mkEnableOption;
|
|
|
|
|
2023-04-01 15:00:59 +00:00
|
|
|
cfg = config.aa.system.monitoring;
|
|
|
|
in {
|
2024-07-29 05:33:20 +00:00
|
|
|
options.aa.system.monitoring = {
|
2023-04-01 15:00:59 +00:00
|
|
|
enable = mkEnableOption "monitoring";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = with pkgs; [
|
2024-07-29 05:33:20 +00:00
|
|
|
btop
|
2023-04-01 15:00:59 +00:00
|
|
|
htop
|
|
|
|
lm_sensors
|
|
|
|
powertop
|
|
|
|
];
|
|
|
|
|
|
|
|
powerManagement.powertop.enable = true;
|
|
|
|
};
|
|
|
|
}
|