summaryrefslogtreecommitdiff
path: root/Biz/Cloud
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2021-12-21 10:53:56 -0500
committerBen Sima <ben@bsima.me>2021-12-21 11:01:55 -0500
commitf8197182cc5c2482781c2d02fc8e05ba75d00c09 (patch)
treef7a314d6381ad0c6d113a438a65e0e8c4d46ec8f /Biz/Cloud
parent47287f3b218e7f30e2ce5b1bdd7f6b0f3fac41ee (diff)
Switch services.radicale.config -> settings
Diffstat (limited to 'Biz/Cloud')
-rw-r--r--Biz/Cloud/Web.nix21
1 files changed, 13 insertions, 8 deletions
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;