mirror of
https://github.com/gburd/nix-config.git
synced 2024-11-14 16:36:24 +00:00
16 lines
409 B
Nix
16 lines
409 B
Nix
{ hostname, pkgs, username, ... }: {
|
|
services.syncthing = {
|
|
enable = true;
|
|
extraOptions = [
|
|
"--config=/home/${username}/Syncthing/Devices/${hostname}"
|
|
"--data=/home/${username}/Syncthing/DB/${hostname}"
|
|
"--gui-address=0.0.0.0:8384"
|
|
"--no-default-folder"
|
|
"--no-browser"
|
|
];
|
|
tray = {
|
|
enable = true;
|
|
package = pkgs.unstable.syncthingtray;
|
|
};
|
|
};
|
|
}
|