nix-config/configs/nixos/radicale.nix

30 lines
528 B
Nix
Raw Normal View History

2024-07-25 15:24:11 -05:00
{
inputs,
config,
pkgs,
lib,
...
}: {
2024-07-29 15:02:40 -05:00
services.radicale = {
enable = true;
settings = {
auth = {
type = "htpasswd";
htpasswd_encryption = "md5";
htpasswd_filename = "${inputs.nix-secrets}/radicale-users";
2024-07-25 15:24:11 -05:00
};
};
};
networking.firewall.allowedTCPPorts = [5232];
2024-07-29 15:02:40 -05:00
services.nginx.virtualHosts."cal.venberg.xyz" = {
enableACME = true;
forceSSL = true;
locations."/" = {
proxyPass = "http://localhost:5232";
};
};
2024-07-30 15:25:53 -05:00
imports = [./nginx.nix];
2024-07-25 15:24:11 -05:00
}