tailscale: Add restart triggers

This commit is contained in:
SebastianStork 2025-09-17 22:34:47 +02:00
parent 7edd02884e
commit 4f0fea5461
10 changed files with 32 additions and 11 deletions

View file

@ -59,8 +59,14 @@ in
};
sops.secrets = lib.mkIf useStaticTls {
"syncthing/cert".owner = config.services.syncthing.user;
"syncthing/key".owner = config.services.syncthing.user;
"syncthing/cert" = {
owner = config.services.syncthing.user;
restartUnits = [ "syncthing.service" ];
};
"syncthing/key" = {
owner = config.services.syncthing.user;
restartUnits = [ "syncthing.service" ];
};
};
services.syncthing = {