about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-05-12 14:48:50 -0700
committerFranck Cuny <franck@fcuny.net>2023-05-12 14:48:50 -0700
commit21d405ab09a6f79a0eabab8e62d940e0704a57b6 (patch)
tree2dc89cc7cc5e2a8e96c7e7d58aad5e7e988a058e /hosts
parentprofiles/monitoring: move node exporter to a profile (diff)
downloadworld-21d405ab09a6f79a0eabab8e62d940e0704a57b6.tar.gz
profiles/monitoring: move promtail to a profile
Diffstat (limited to '')
-rw-r--r--hosts/carmel/default.nix1
-rw-r--r--hosts/carmel/services.nix6
-rw-r--r--hosts/tahoe/default.nix1
-rw-r--r--hosts/tahoe/services.nix1
4 files changed, 2 insertions, 7 deletions
diff --git a/hosts/carmel/default.nix b/hosts/carmel/default.nix
index b50c036..67c768b 100644
--- a/hosts/carmel/default.nix
+++ b/hosts/carmel/default.nix
@@ -10,6 +10,7 @@
     "${self}/profiles/nginx.nix"
     "${self}/profiles/router.nix"
     "${self}/profiles/monitoring/exporter.nix"
+    "${self}/profiles/monitoring/promtail.nix"
   ];
 
   boot.loader.efi.efiSysMountPoint = "/boot/efi";
diff --git a/hosts/carmel/services.nix b/hosts/carmel/services.nix
index 5b6055e..6694950 100644
--- a/hosts/carmel/services.nix
+++ b/hosts/carmel/services.nix
@@ -1,10 +1,4 @@
 { config, pkgs, ... }: {
-  my.services = {
-    monitoring = {
-      promtail.enable = true;
-    };
-  };
-
   services.nginx = {
     streamConfig = ''
       server {
diff --git a/hosts/tahoe/default.nix b/hosts/tahoe/default.nix
index a5a6533..a23c7c8 100644
--- a/hosts/tahoe/default.nix
+++ b/hosts/tahoe/default.nix
@@ -18,6 +18,7 @@ in
     "${self}/profiles/music-server.nix"
     "${self}/profiles/hardware/amd.nix"
     "${self}/profiles/monitoring/exporter.nix"
+    "${self}/profiles/monitoring/promtail.nix"
   ];
 
   # Use systemd-networkd for networking
diff --git a/hosts/tahoe/services.nix b/hosts/tahoe/services.nix
index b8745e4..a8b80b8 100644
--- a/hosts/tahoe/services.nix
+++ b/hosts/tahoe/services.nix
@@ -20,7 +20,6 @@ in
         enable = true;
         vhostName = "dash.${config.homelab.domain}";
       };
-      promtail.enable = true;
     };
 
     sendsms.enable = true;