nix/hosts/marvin/services/radicale.nix

21 lines
563 B
Nix
Raw Normal View History

2022-06-12 20:22:19 +00:00
{pkgs, ...}: {
services.radicale = {
enable = true;
2022-06-12 20:24:07 +00:00
settings = {
2022-06-12 20:22:19 +00:00
server = {
2022-07-16 02:05:23 +00:00
hosts = ["0.0.0.0:5352" "[::]:5232"];
2022-06-12 20:22:19 +00:00
};
auth = {
type = "htpasswd";
htpasswd_filename = "${pkgs.my-pkgs.radicale-htpasswd}/htpasswd";
htpasswd_encryption = "bcrypt";
};
storage = {
type = "multifilesystem";
2022-06-13 18:56:56 +00:00
# hook = "${pkgs.git}/bin/git add -A && (${pkgs.git}/bin/git diff --cached --quiet || ${pkgs.git}/bin/git commit -m \"Changes by \"%(user)s)";
2022-06-12 20:22:19 +00:00
};
web.type = "none";
};
};
}