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 ################################################################################