diff options
author | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:34:08 +0100 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2021-03-05 22:56:29 +0100 |
commit | 143ed53f90b67f72e830fea5fa15ceb5d33a1ca6 (patch) | |
tree | 0175e1b3cebeb11e459aab79bae588393ac5405b /machines/profpatsch | |
parent | 50f14acc9354ad326bbc0bf8eedc13f3f894b32f (diff) |
machines/legosi: enable xandikos caldav/carddav server
Diffstat (limited to 'machines/profpatsch')
-rw-r--r-- | machines/profpatsch/legosi.nix | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/machines/profpatsch/legosi.nix b/machines/profpatsch/legosi.nix index 6b4215ab..fed8bce8 100644 --- a/machines/profpatsch/legosi.nix +++ b/machines/profpatsch/legosi.nix @@ -15,6 +15,9 @@ let myKey = "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDNMQvmOfon956Z0ZVdp186YhPHtSBrXsBwaCt0JAbkf/U/P+4fG0OROA++fHDiFM4RrRHH6plsGY3W6L26mSsCM2LtlHJINFZtVILkI26MDEIKWEsfBatDW+XNAvkfYEahy16P5CBtTVNKEGsTcPD+VDistHseFNKiVlSLDCvJ0vMwOykHhq+rdJmjJ8tkUWC2bNqTIH26bU0UbhMAtJstWqaTUGnB0WVutKmkZbnylLMICAvnFoZLoMPmbvx8efgLYY2vD1pRd8Uwnq9MFV1EPbkJoinTf1XSo8VUo7WCjL79aYSIvHmXG+5qKB9ed2GWbBLolAoXkZ00E4WsVp9H philip@nyx"; + xandikosPort = 2345; + tailscaleAddress = "100.89.52.54"; + in { imports = [ ./base-server.nix @@ -55,6 +58,8 @@ in { firewall = { allowedTCPPorts = [ 80 443 + # only binds against tailscale subnet + xandikosPort ]; }; @@ -149,6 +154,18 @@ in { }; }; + services.xandikos = { + enable = true; + # not exposed via the firewall, should only be accessible via tailscale + address = tailscaleAddress; + port = xandikosPort; + extraOptions = [ + "--autocreate" + "--defaults" + "--dump-dav-xml" + ]; + }; + services.syncthing = { enable = true; openDefaultPorts = true; |