From 2244d34ac1f316112f5e787eba19bdefa61bb541 Mon Sep 17 00:00:00 2001 From: iFargle Date: Wed, 5 Jul 2023 13:20:49 +0900 Subject: [PATCH] Added promtail restart rules --- services/promtail.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/services/promtail.nix b/services/promtail.nix index e2342e83..e01ad387 100644 --- a/services/promtail.nix +++ b/services/promtail.nix @@ -6,6 +6,11 @@ sopsFile = ../secrets/secrets.yaml; }; + # Restart the unit if the secret changes + sops.secrets."secrets.yaml" = { + restartUnits = [ "promtail.service" ]; + }; + # Install the package environment.systemPackages = with pkgs; [ promtail