Replaced powertop module with monitoring module
This new module includes a bunch of utilities for monitoring my systems.
This commit is contained in:
parent
4bf96cf94f
commit
00762bbc4e
|
@ -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;
|
||||
};
|
||||
}
|
25
modules/system/monitoring/default.nix
Normal file
25
modules/system/monitoring/default.nix
Normal 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;
|
||||
};
|
||||
}
|
|
@ -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"];
|
||||
|
|
Loading…
Reference in a new issue