moved all os stuff to new config

This commit is contained in:
ari committed 2024-08-18 21:29:27 -04:00
1 parent 1d0188e199
commit 3de38b8c94
5 files changed
+23 -43

No files matched your search

+1
View File
@@ -3,5 +3,6 @@
imports = [
./audiobookshelf.nix
./coral-tpu-udev.nix
./exporters.nix
];
}
+21
View File
@@ -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;
};
};
};
}