mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-15 08:46:25 +00:00
16 lines
435 B
Nix
16 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"
|
|
];
|
|
};
|
|
}
|