diff --git a/hosts/nihilus/default.nix b/hosts/nihilus/default.nix index bde7ba7..88273dd 100644 --- a/hosts/nihilus/default.nix +++ b/hosts/nihilus/default.nix @@ -15,7 +15,6 @@ server = { rsync-daemon = { enable = true; - port = 9523; openFirewall = true; location = "/mnt/backups"; address = "100.64.0.6"; diff --git a/options/server/rsync-daemon/default.nix b/options/server/rsync-daemon/default.nix index b7d4ae7..96cea6c 100644 --- a/options/server/rsync-daemon/default.nix +++ b/options/server/rsync-daemon/default.nix @@ -26,7 +26,7 @@ in default = false; description = "Whether to open the firewall"; }; - port = mkPortOption 9523 "rsyncd"; + port = mkPortOption 873 "rsyncd"; address = mkOption { type = nonEmptyStr; default = "0.0.0.0"; @@ -80,6 +80,7 @@ in modules.fixes.services.rsyncd = { enable = true; + inherit (cfg) port; socketActivated = true; settings = { globalSection = {