mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-20 10:36:25 +00:00
17 lines
435 B
Nix
17 lines
435 B
Nix
|
{ config, desktop, hostname, lib, ... }: {
|
||
|
imports = [ ] ++ lib.optionals (desktop != null) [
|
||
|
./syncthing-tray.nix
|
||
|
];
|
||
|
|
||
|
services.syncthing = {
|
||
|
enable = true;
|
||
|
extraOptions = [
|
||
|
"--config=${config.home.homeDirectory}/Syncthing/Devices/${hostname}"
|
||
|
"--data=${config.home.homeDirectory}/Syncthing/DB/${hostname}"
|
||
|
"--gui-address=0.0.0.0:8384"
|
||
|
"--no-default-folder"
|
||
|
"--no-browser"
|
||
|
];
|
||
|
};
|
||
|
}
|