{ ... }: let port = 5232; in { services.xandikos = { inherit port; enable = true; routePrefix = "/dav"; extraOptions = [ "--defaults" ]; }; services.caddy.virtualHosts."dav.xenia.me.uk".extraConfig = '' basicauth { pixelifytica $2a$14$AwYqa81IWL8lU7B5SrQhlOILZj4VqCgcIn9cte8nytQIP/WhfJoSG } respond /.well-known/caldav http://localhost:${toString port}/user/calendars respond /.well-known/carddav http://localhost:${toString port}/user/contacts reverse_proxy http://localhost:${toString port} ''; }