From 21d405ab09a6f79a0eabab8e62d940e0704a57b6 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 12 May 2023 14:48:50 -0700 Subject: profiles/monitoring: move promtail to a profile --- hosts/carmel/default.nix | 1 + hosts/carmel/services.nix | 6 ------ hosts/tahoe/default.nix | 1 + hosts/tahoe/services.nix | 1 - 4 files changed, 2 insertions(+), 7 deletions(-) (limited to 'hosts') 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; -- cgit 1.4.1