summaryrefslogtreecommitdiff
path: root/Biz/Cloud/Web.nix
diff options
context:
space:
mode:
Diffstat (limited to 'Biz/Cloud/Web.nix')
-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;