Commit c3c69b70e409

Vincent Demeester <vincent@sbr.pm>
2026-02-18 16:37:25
refactor(systems): auto-import prometheus-exporters-node
Moved prometheus-exporters-node.nix import to common/base so all hosts get it automatically. Removed from 10 host extra.nix files.
1 parent ca8802c
Changed files (4)
systems
systems/aion/extra.nix
@@ -41,7 +41,7 @@ in
   imports = [
     ../common/services/samba.nix
     ../common/services/homepage.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../../modules/audible-sync
     ../../modules/beets-auto-import
     ../../modules/music-playlist-dl
systems/common/base/default.nix
@@ -15,9 +15,10 @@
     ./network.nix
     ./tpm.nix
 
-    # All my machine have this running
+    # All my machines have this running
     ../services/avahi.nix
     ../services/openssh.nix
+    ../services/prometheus-exporters-node.nix
     ../programs/age.nix
     # ../services/wireguard.nix # or netbird
   ];
systems/okinawa/extra.nix
@@ -17,7 +17,7 @@
     ../common/services/containers.nix
     ../common/services/docker.nix
     ../common/services/binfmt.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/oomd.nix
     ../../modules/laptop-keyboard-inhibit
     # Build and cache infrastructure
@@ -508,7 +508,7 @@
   ];
 
   # Prometheus node exporter (configured in common module)
-  # Port and basic collectors already set in ../common/services/prometheus-exporters-node.nix
+  # Port and basic collectors already set in ../common/base (prometheus-exporters-node.nix)
 
   # Lid handling: ignore (desktop replacement, mostly on AC)
   services.logind.settings.Login = {
systems/rhea/extra.nix
@@ -73,7 +73,7 @@ in
 {
   imports = [
     ../common/services/samba.nix
-    ../common/services/prometheus-exporters-node.nix
+
     ../common/services/prometheus-exporters-postgres.nix
     ../../modules/jellyfin-auto-collections
     ../../modules/jellyfin-favorites-sync