modules/system: flatten
This commit is contained in:
parent
52c84814e8
commit
5c3f1dac68
14 changed files with 65 additions and 70 deletions
20
modules/system/monitoring.nix
Normal file
20
modules/system/monitoring.nix
Normal file
|
@ -0,0 +1,20 @@
|
|||
{ isLinux }:
|
||||
{ lib, ... }:
|
||||
let
|
||||
linuxConfig = lib.optionalAttrs isLinux {
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
};
|
||||
};
|
||||
|
||||
darwinConfig = lib.optionalAttrs (!isLinux) { };
|
||||
in
|
||||
{
|
||||
_file = ./monitoring.nix;
|
||||
|
||||
config = lib.mkMerge [
|
||||
linuxConfig
|
||||
darwinConfig
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue