nix-config/home-manager/_mixins/services/syncthing.nix
2024-05-23 15:02:20 -04:00

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