From 6df7ca5da64a8470c87e12e19cc52178f1388460 Mon Sep 17 00:00:00 2001 From: clerie Date: Sun, 12 Dec 2021 17:30:08 +0100 Subject: [PATCH] Migrate radicale config to attribute set --- hosts/web-2/radicale.nix | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/hosts/web-2/radicale.nix b/hosts/web-2/radicale.nix index 0a9f01e..83d92ce 100644 --- a/hosts/web-2/radicale.nix +++ b/hosts/web-2/radicale.nix @@ -3,18 +3,19 @@ { services.radicale = { enable = true; - config = '' - [server] - hosts = 127.0.0.1:61865 - - [auth] - type = htpasswd - htpasswd_filename = /var/src/secrets/radicale/htpasswd - htpasswd_encryption = bcrypt - - [storage] - filesystem_folder = /var/lib/radicale/collections - ''; + settings = { + server = { + hosts = [ "127.0.0.1:61865" ]; + }; + auth = { + type = "htpasswd"; + htpasswd_filename = "/var/src/secrets/radicale/htpasswd"; + htpasswd_encryption = "bcrypt"; + }; + storage = { + filesystem_folder = "/var/lib/radicale/collections"; + }; + }; }; services.nginx.virtualHosts."dav.clerie.de" = {