From 6ab24a55835f447b0e5054aa4af03ede183783ef Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 17 May 2021 09:56:44 +0200 Subject: [PATCH] Replace Radicale config with new settings option --- modules/datasync.nix | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) 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