fix synthing

This commit is contained in:
Joakim Repomaa
2026-03-07 13:20:19 +02:00
parent e0c1a457b0
commit efe6863358
2 changed files with 10 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ in
enable = true;
subdomain = "sync";
dataDir = syncthingDataDir;
configDir = "/var/lib/syncthing";
};
tailscale.enable = true;

View File

@@ -27,5 +27,14 @@ in
vHosts.${fqdn}.locations."/".proxyPort = cfg.port;
};
};
systemd.services.syncthing.serviceConfig =
lib.mkIf
(
cfg.dataDir == "/var/lib/syncthing" || cfg.dataDir == null || cfg.configDir == "/var/lib/syncthing"
)
{
StateDirectory = "syncthing";
};
};
}