Files
dotfiles/system-modules/nx2site/radicale.nix
Lennart J. Kurzweg (Nx2) 60a839663a radicale fix
2025-02-22 11:33:43 +01:00

30 lines
621 B
Nix

{ config, domain, ... }:
{
sops.secrets = {
"nx2site/radicale/htpasswd" = {
owner = "radicale";
};
};
services = {
radicale = {
# is run by user radicale
enable = true;
settings = {
server.hosts = let
port = builtins.toString 5232;
in [
"0.0.0.0:${port}"
"${domain}:${port}"
# "192.168.178.32:${port}"
];
auth = {
type = "htpasswd";
htpasswd_filename = config.sops.secrets."nx2site/radicale/htpasswd".path;
htpasswd_encryption = "bcrypt";
};
};
};
};
}