Replaced powertop module with monitoring module

This new module includes a bunch of utilities for monitoring my systems.
This commit is contained in:
Alejandro Angulo 2023-04-01 08:00:59 -07:00
parent 4bf96cf94f
commit 00762bbc4e
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
3 changed files with 26 additions and 22 deletions

View file

@ -1,20 +0,0 @@
{
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

@ -0,0 +1,25 @@
{
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;
};
}

View file

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