Personal-use NixOS configuration
1{
2 hosts ? [ ],
3}:
4
5{ flakeLib, ... }:
6
7{
8 services.radicale = {
9 enable = true;
10
11 settings = {
12 auth = {
13 type = "imap";
14
15 # imap_host = "localhost";
16 # imap_security = "tls";
17
18 cache_logins = true;
19 };
20
21 web = {
22 type = "none";
23 };
24 };
25 };
26
27 # Caddy reverse proxy configuration
28 services.caddy.virtualHosts = flakeLib.mkProxies hosts ''
29 reverse_proxy :5232
30 '';
31}