2024-07-25 15:24:11 -05:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
services.radicale={
|
|
|
|
enable=true;
|
|
|
|
settings={
|
|
|
|
server={
|
|
|
|
hosts=[ "0.0.0.0:5232" "[::]:5232" ];
|
|
|
|
};
|
|
|
|
auth={
|
|
|
|
type="htpasswd";
|
|
|
|
htpasswd_encryption="md5";
|
|
|
|
htpasswd_filename="${inputs.nix-secrets}/radicale-users";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-07-27 19:11:57 -05:00
|
|
|
networking.firewall.allowedTCPPorts = [5232];
|
2024-07-25 15:24:11 -05:00
|
|
|
}
|