Files
nixos-blueprint/modules/home/programs/syncthing.nix
2025-11-28 00:11:27 +02:00

27 lines
447 B
Nix

{
config,
lib,
...
}:
with lib; let
cfg = config.syncthing;
in {
options = {
syncthing.enable = mkEnableOption "enable syncthing";
};
config = mkIf cfg.enable {
services.syncthing = {
enable = true;
overrideDevices = false;
overrideFolders = false;
tray.enable = true;
settings = {
options = {
urAccepted = -1;
relaysEnabled = true;
};
};
};
};
}