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