mirror of
https://github.com/oqyude/nixos.git
synced 2026-08-10 08:33:12 +03:00
18 lines
334 B
Nix
18 lines
334 B
Nix
{
|
|
config,
|
|
xlib,
|
|
inputs,
|
|
...
|
|
}:
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
systemService = true;
|
|
guiAddress = "0.0.0.0:8384";
|
|
configDir = "${xlib.dirs.storage}/persist/Syncthing/${xlib.device.hostname}";
|
|
dataDir = "${xlib.dirs.server-home}";
|
|
group = "users";
|
|
user = "${xlib.device.username}";
|
|
};
|
|
}
|