dotfiles/modules/system/monitoring/default.nix
Alejandro Angulo 00762bbc4e
Replaced powertop module with monitoring module
This new module includes a bunch of utilities for monitoring my systems.
2023-04-01 08:00:59 -07:00

26 lines
388 B
Nix

{
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
zenith
];
powerManagement.powertop.enable = true;
};
}