nix-config/configs/nixos/radicale.nix

30 lines
528 B
Nix

{
inputs,
config,
pkgs,
lib,
...
}: {
services.radicale = {
enable = true;
settings = {
auth = {
type = "htpasswd";
htpasswd_encryption = "md5";
htpasswd_filename = "${inputs.nix-secrets}/radicale-users";
};
};
};
networking.firewall.allowedTCPPorts = [5232];
services.nginx.virtualHosts."cal.venberg.xyz" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:5232";
};
};
imports = [./nginx.nix];
}