From 7796baa7e5086e6da391e75ecad284bb7ccb92d5 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Wed, 22 May 2024 22:12:33 +0300 Subject: [PATCH] host/home: add radicale calendar --- hosts/home/configuration.nix | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/hosts/home/configuration.nix b/hosts/home/configuration.nix index 039cd89..1e125f9 100644 --- a/hosts/home/configuration.nix +++ b/hosts/home/configuration.nix @@ -9,6 +9,35 @@ local.yubikey.enable = true; + services.radicale = { + enable = true; + settings = { + auth = { + # htpasswd -B -c /etc/radicale/users + type = "htpasswd"; + htpasswd_filename = "/etc/radicale/users"; + htpasswd_encryption = "bcrypt"; + }; + }; + rights = { + root = { + user = ".+"; + collection = ""; + permissions = "R"; + }; + principal = { + user = ".+"; + collection = "{user}"; + permissions = "RW"; + }; + calendars = { + user = ".+"; + collection = "{user}/[^/]+"; + permissions = "rw"; + }; + }; + }; + ################################################################################ # Programs ################################################################################