aboutsummaryrefslogtreecommitdiff
path: root/hosts/mantis
diff options
context:
space:
mode:
authorAkshay <[email protected]>2024-03-13 23:05:57 +0000
committerAkshay <[email protected]>2024-03-13 23:05:57 +0000
commit4fa4a8f24b574336f6360c3565a443c80e116763 (patch)
tree2f907e5c5ac085006839e3cad9993b6ac25eee8b /hosts/mantis
parent30606a7558f2e502345b04cd6ca692157b21a20b (diff)
mantis: init radicale
Diffstat (limited to 'hosts/mantis')
-rw-r--r--hosts/mantis/configuration.nix19
1 files changed, 19 insertions, 0 deletions
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 @@
174 174
175 services.flaresolverr.enable = true; 175 services.flaresolverr.enable = true;
176 176
177 services.radicale = {
178 enable = true;
179 settings = {
180 server.hosts = [ "0.0.0.0:5232" ];
181 auth = {
182 type = "htpasswd";
183 htpasswd_filename = "/etc/radicale/users";
184 htpasswd_encryption = "bcrypt";
185 };
186 };
187 };
188 services.nginx.virtualHosts."radicale.mantis" = {
189 listen = [{ port = 80; addr = "0.0.0.0"; }];
190 locations."/" = {
191 proxyPass = "http://127.0.0.1:5232";
192 };
193 };
194
195
177 nix.settings.experimental-features = [ "nix-command" "flakes" ]; 196 nix.settings.experimental-features = [ "nix-command" "flakes" ];
178 197
179 # Copy the NixOS configuration file and link it from the resulting system 198 # Copy the NixOS configuration file and link it from the resulting system