nixos/system/services/radicale.nix

24 lines
428 B
Nix
Raw Normal View History

2024-07-30 15:06:34 +01:00
{ ... }:
let
2024-04-16 07:01:57 +01:00
port = "5232";
2024-07-30 15:06:34 +01:00
in
{
2024-04-16 06:58:21 +01:00
services.radicale = {
enable = true;
settings = {
server = {
2024-07-30 15:06:34 +01:00
hosts = [ "0.0.0.0:${port}" ];
2024-04-16 06:58:21 +01:00
};
auth = {
type = "htpasswd";
htpasswd_filename = "/etc/radicale/users";
delay = 1;
};
};
# rights = {};
};
services.caddy.virtualHosts."cal.xenia.me.uk".extraConfig = ''
reverse_proxy http://localhost:${port}
'';
}