Files
dotfiles/system-modules/nx2site/radicale.nix
Lennart J. Kurzweg (Nx2) 447e6edd56 radicale (untested)
2024-12-27 12:56:33 +01:00

20 lines
414 B
Nix

{ config, domain, ... }:
{
sops.secrets = {
"nx2site/radicale-htpasswd" = {};
};
services = {
radicale = {
server.hosts = let
port = builtins.toString 5232;
in [ "192.168.178.32:${port}" ];
auth = {
type = "htpasswd";
htpasswd_filename = config.sops.secrets."nx2site/radicale-htpasswd".path;
htpasswd_encryption = "bcrypt";
};
};
};
}