diff options
| author | quentin@aristote.fr <quentin@aristote.fr> | 2026-11-29 17:24:18 +0100 |
|---|---|---|
| committer | quentin@aristote.fr <quentin@aristote.fr> | 2026-11-29 17:42:35 +0100 |
| commit | ce831333a24011d0692f6871047fe74eab9fab8c (patch) | |
| tree | 9bb971e2afe0a4b22c73274e8b8e8d05d014401d /config/services/dav/default.nix | |
| download | hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.gz hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.bz2 hermaphroditos-ce831333a24011d0692f6871047fe74eab9fab8c.tar.xz | |
initial commit
Diffstat (limited to 'config/services/dav/default.nix')
| -rw-r--r-- | config/services/dav/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/config/services/dav/default.nix b/config/services/dav/default.nix new file mode 100644 index 0000000..2157ad0 --- /dev/null +++ b/config/services/dav/default.nix @@ -0,0 +1,30 @@ +{ 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; +} |
