nix/hosts/marvin/services/radicale.nix
2022-07-15 22:05:23 -04:00

20 lines
563 B
Nix

{pkgs, ...}: {
services.radicale = {
enable = true;
settings = {
server = {
hosts = ["0.0.0.0:5352" "[::]:5232"];
};
auth = {
type = "htpasswd";
htpasswd_filename = "${pkgs.my-pkgs.radicale-htpasswd}/htpasswd";
htpasswd_encryption = "bcrypt";
};
storage = {
type = "multifilesystem";
# hook = "${pkgs.git}/bin/git add -A && (${pkgs.git}/bin/git diff --cached --quiet || ${pkgs.git}/bin/git commit -m \"Changes by \"%(user)s)";
};
web.type = "none";
};
};
}