mirror of
https://github.com/oqyude/nixos.git
synced 2026-06-10 20:20:41 +03:00
24 lines
441 B
Nix
24 lines
441 B
Nix
{
|
|
config,
|
|
xlib,
|
|
inputs,
|
|
...
|
|
}:
|
|
let
|
|
master = import inputs.nixpkgs-master {
|
|
system = "x86_64-linux";
|
|
};
|
|
in
|
|
{
|
|
services.syncthing = {
|
|
enable = true;
|
|
package = master.syncthing;
|
|
systemService = true;
|
|
guiAddress = "0.0.0.0:8384";
|
|
configDir = "${xlib.dirs.storage}/Syncthing/${xlib.device.hostname}";
|
|
dataDir = "${xlib.dirs.server-home}";
|
|
group = "users";
|
|
user = "${xlib.device.username}";
|
|
};
|
|
}
|