{ config, pkgs, ... }: { services.radicale = { enable = true; settings = { auth = { type = "htpasswd"; # generate with # nix shell nixpkgs#apacheHttpd --command htpasswd -cB .htpasswd username htpasswd_filename = "/etc/radicale/.htpasswd"; htpasswd_encryption = "bcrypt"; }; storage = { filesystem_folder = "/srv/dav/collections"; hook = "${ pkgs.writers.writePython3Bin "create-bday-cal" { libraries = with pkgs.python3Packages; [ python-dateutil vobject ]; } (builtins.readFile ./create-bday-cal.py) }/bin/create-bday-cal"; }; web.type = "none"; }; }; systemd.services.radicale.personal.monitor = true; }