diff --git a/roles/server/syncthing.nix b/roles/server/syncthing.nix index baddf06..1f25424 100755 --- a/roles/server/syncthing.nix +++ b/roles/server/syncthing.nix @@ -5,6 +5,7 @@ syncthingKey.file = ../../secrets/syncthing/key; syncthingCert.file = ../../secrets/syncthing/cert; }; + services.syncthing = { enable = true; key = config.age.secrets.syncthingKey.path; @@ -16,6 +17,10 @@ }; }; }; + systemd.services.syncthing.serviceConfig = { + # Allow syncthing to change ownership of files + AmbientCapabilities = "CAP_CHOWN CAP_FOWNER"; + }; # Set up traefik as the reverse proxy for syncthing services.traefik = {