From c76755e211a3470de7036aece3bf19c1578033d7 Mon Sep 17 00:00:00 2001 From: Nydragon Date: Sun, 17 Nov 2024 18:50:24 +0100 Subject: [PATCH] feat(shan): host radicale --- hosts/shan/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/hosts/shan/default.nix b/hosts/shan/default.nix index 4c3f66a..4a2eb74 100644 --- a/hosts/shan/default.nix +++ b/hosts/shan/default.nix @@ -141,7 +141,26 @@ openFirewall = true; host = "0.0.0.0"; }; + + radicale = { + enable = true; + # Documentation at + settings = { + server = { + hosts = [ "0.0.0.0:5232" ]; + }; + auth = { + type = "htpasswd"; + htpasswd_filename = "/etc/radicale/users"; + htpasswd_encryption = "autodetect"; + }; + storage = { + filesystem_folder = "/var/lib/radicale/collections"; + }; + }; + }; }; + networking.firewall.allowedTCPPorts = [ 5232 ]; # security.acme = { #acceptTerms = true;