moved all os stuff to new config
This commit is contained in:
1 parent
1d0188e199
commit
3de38b8c94
5 files changed
+23
-43
No files matched your search
@@ -3,5 +3,6 @@
|
||||
imports = [
|
||||
./audiobookshelf.nix
|
||||
./coral-tpu-udev.nix
|
||||
./exporters.nix
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
{ config, lib, ... }:
|
||||
with lib;
|
||||
let cfg = config.skyg.server.exporters;
|
||||
in {
|
||||
options = {
|
||||
skyg.server.exporters = {
|
||||
enable = mkEnableOption
|
||||
"Enable Special prom exporters for servers";
|
||||
};
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
services.prometheus.exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
enabledCollectors = [ "systemd" ];
|
||||
openFirewall = true;
|
||||
port = 9100;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user