nix-config/hosts/radicale/radicale.nix
2025-01-20 18:07:35 +00:00

22 lines
460 B
Nix

{ config, ... }:
{
sops.secrets."radicale/htpasswd" = {
owner = config.users.users.radicale.name;
};
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "0.0.0.0:5232" "[::]:5232" ];
ssl = "False";
};
auth = {
type = "htpasswd";
htpasswd_filename = config.sops.secrets."radicale/htpasswd".path;
};
rights = {
type = "owner_only";
};
};
};
}