diff --git a/modules/datasync.nix b/modules/datasync.nix index 66f3248..14dad83 100644 --- a/modules/datasync.nix +++ b/modules/datasync.nix @@ -69,19 +69,16 @@ # Enable Radicale services.radicale = { enable = true; - config = '' - [server] - hosts = 127.0.0.1:5232 - - [auth] - type = htpasswd - htpasswd_filename = /vault/radicale/users - htpasswd_encryption = md5 - delay = 1 - - [storage] - filesystem_folder = /vault/radicale/collections - ''; + settings = { + server.hosts = [ "127.0.0.1:5232" ]; + auth = { + type = "htpasswd"; + htpasswd_filename = "/vault/radicale/users"; + htpasswd_encryption = "md5"; + delay = 1; + }; + storage.filesystem_folder = "/vault/radicale/collections"; + }; }; # ZFS automatic snapshots