From f08f3812f40322b6098d75573413ed83f358871f Mon Sep 17 00:00:00 2001 From: Kleidi Bujari Date: Sun, 1 Dec 2024 22:30:26 -0500 Subject: Cleanup xnet module and add baseline modules With these changes, the xnet module is useable as a system builder. At this point, it is still undecided whether all configuration will be generalized into this module, rather than keeping mini-modules local to the machine they will run on. --- modules/xnet/users/radicale.nix | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 modules/xnet/users/radicale.nix (limited to 'modules/xnet/users/radicale.nix') diff --git a/modules/xnet/users/radicale.nix b/modules/xnet/users/radicale.nix deleted file mode 100644 index 7d752f0..0000000 --- a/modules/xnet/users/radicale.nix +++ /dev/null @@ -1,28 +0,0 @@ -{ config, ... }: -let path = "/persist/data/radicale"; in { - services.radicale = { - enable = false; - settings = { - server.hosts = [ "127.0.0.1:5232" ]; - storage.filesystem_folder = "${path}/collections"; - auth = { - type = "htpasswd"; - htpasswd_filename = "${path}/users"; - htpasswd_encryption = "plain"; - }; - }; - }; - - systemd.tmpfiles.rules = [ - "d ${path} 0700 radicale radicale -" - "Z ${path} 0700 radicale radicale - -" - ]; - - services.nginx.virtualHosts."dav.web.4kb.net" = { - useACMEHost = "4kb.net"; - forceSSL = true; - locations."/" = { - proxyPass = "http://127.0.0.1:5232/"; - }; - }; -} -- cgit v1.3.1