nix-config/hosts/radicale/radicale.nix

23 lines
460 B
Nix
Raw Normal View History

2025-01-20 02:17:45 +00:00
{ config, ... }:
2025-01-19 23:04:04 +00:00
{
2025-01-20 02:17:45 +00:00
sops.secrets."radicale/htpasswd" = {
owner = config.users.users.radicale.name;
};
2025-01-19 23:04:04 +00:00
services.radicale = {
enable = true;
settings = {
server = {
hosts = [ "0.0.0.0:5232" "[::]:5232" ];
ssl = "False";
};
auth = {
2025-01-20 02:17:45 +00:00
type = "htpasswd";
htpasswd_filename = config.sops.secrets."radicale/htpasswd".path;
2025-01-19 23:04:04 +00:00
};
rights = {
type = "owner_only";
};
};
};
}