From 4fa4a8f24b574336f6360c3565a443c80e116763 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 13 Mar 2024 23:05:57 +0000 Subject: mantis: init radicale --- hosts/mantis/configuration.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'hosts') diff --git a/hosts/mantis/configuration.nix b/hosts/mantis/configuration.nix index fd014e4..84ea0d9 100644 --- a/hosts/mantis/configuration.nix +++ b/hosts/mantis/configuration.nix @@ -174,6 +174,25 @@ services.flaresolverr.enable = true; + services.radicale = { + enable = true; + settings = { + server.hosts = [ "0.0.0.0:5232" ]; + auth = { + type = "htpasswd"; + htpasswd_filename = "/etc/radicale/users"; + htpasswd_encryption = "bcrypt"; + }; + }; + }; + services.nginx.virtualHosts."radicale.mantis" = { + listen = [{ port = 80; addr = "0.0.0.0"; }]; + locations."/" = { + proxyPass = "http://127.0.0.1:5232"; + }; + }; + + nix.settings.experimental-features = [ "nix-command" "flakes" ]; # Copy the NixOS configuration file and link it from the resulting system -- cgit v1.2.3