From f8197182cc5c2482781c2d02fc8e05ba75d00c09 Mon Sep 17 00:00:00 2001 From: Ben Sima Date: Tue, 21 Dec 2021 10:53:56 -0500 Subject: Switch services.radicale.config -> settings --- Biz/Cloud/Web.nix | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) (limited to 'Biz/Cloud') diff --git a/Biz/Cloud/Web.nix b/Biz/Cloud/Web.nix index 68ff19e..5d951e8 100644 --- a/Biz/Cloud/Web.nix +++ b/Biz/Cloud/Web.nix @@ -21,14 +21,19 @@ in services = { radicale = { enable = true; - config = '' - [server] - hosts = 0.0.0.0:${toString ports.radicale}, [::]:${toString ports.radicale} - [auth] - type = htpasswd - htpasswd_filename = /etc/radicale/users - htpasswd_encryption = plain - ''; + settings = { + server = { + hosts = [ + "0.0.0.0:${toString ports.radicale}" + "[::]:${toString ports.radicale}" + ]; + }; + auth = { + type = "htpasswd"; + htpasswd_filename = "/etc/radicale/users"; + htpasswd_encryption = "plain"; + }; + }; }; gmnisrv = { enable = true; -- cgit v1.2.3