fix synthing
This commit is contained in:
@@ -141,6 +141,7 @@ in
|
|||||||
enable = true;
|
enable = true;
|
||||||
subdomain = "sync";
|
subdomain = "sync";
|
||||||
dataDir = syncthingDataDir;
|
dataDir = syncthingDataDir;
|
||||||
|
configDir = "/var/lib/syncthing";
|
||||||
};
|
};
|
||||||
|
|
||||||
tailscale.enable = true;
|
tailscale.enable = true;
|
||||||
|
|||||||
@@ -27,5 +27,14 @@ in
|
|||||||
vHosts.${fqdn}.locations."/".proxyPort = cfg.port;
|
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";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user