diff --git a/home-manager/features/notes.nix b/home-manager/features/notes.nix index 295a622..cc4fc12 100644 --- a/home-manager/features/notes.nix +++ b/home-manager/features/notes.nix @@ -6,9 +6,15 @@ enable = lib.mkDefault true; }; settings = { + folders.Notes = { + path = "~/Documents/Notes"; + }; options = { localAnnounceEnabled = false; - relaysEnabled = false; + relaysEnabled = true; + globalAnnounceEnabled = true; + globalAnnounceServer = "relay://mcp:22067"; + listenAddress = "relay://mcp:22067"; }; }; }; diff --git a/system/hosts/mcp/configuration.nix b/system/hosts/mcp/configuration.nix index 29493fa..7cbc873 100644 --- a/system/hosts/mcp/configuration.nix +++ b/system/hosts/mcp/configuration.nix @@ -111,9 +111,18 @@ }; }; + ### Syncthing relay + # So I don't have to use public relays + services.syncthing.relay = { + enable = true; + pools = [ ]; + }; + ### Firewall # Open ports in the firewall. - # networking.firewall.allowedTCPPorts = [ ... ]; + networking.firewall.allowedTCPPorts = [ + 22067 # Syncthing relay + ]; # networking.firewall.allowedUDPPorts = [ ... ]; # Or disable the firewall altogether. # networking.firewall.enable = false;