nix-config/home-manager/_mixins/services/syncthing.nix

17 lines
409 B
Nix
Raw Permalink Normal View History

{ 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;
};
};
}