diff options
| author | Alejandro Soto <alejandro@34project.org> | 2025-01-22 21:06:11 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2025-01-25 12:21:43 -0600 |
| commit | abd4c0ffd01bbfd7f203ae75183d4c9734de331d (patch) | |
| tree | 132aafeb55bfe59faa01116b89c0e32aa4f4125a /sys/syncthing/default.nix | |
| parent | 9bc15fd531da793bc2f15a486c40351974bd3f85 (diff) | |
sys/[lustrated]: enable syncthing
Diffstat (limited to 'sys/syncthing/default.nix')
| -rw-r--r-- | sys/syncthing/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/sys/syncthing/default.nix b/sys/syncthing/default.nix new file mode 100644 index 0000000..c351e6c --- /dev/null +++ b/sys/syncthing/default.nix @@ -0,0 +1,31 @@ +{ config, lib, ... }: +with lib; let + cfg = config.local.syncthing; +in +{ + options.local.syncthing = { + enable = mkEnableOption "syncthing server"; + }; + + config = mkIf cfg.enable { + services.syncthing = { + enable = true; + + systemService = true; + overrideFolders = false; + overrideDevices = false; + openDefaultPorts = true; + + guiAddress = "127.0.0.1:8384"; + + settings.options.urAccepted = -1; + + relay = { + enable = true; + + pools = [ ]; + providedBy = "${config.networking.hostName}.${config.networking.domain}"; + }; + }; + }; +} |
