summaryrefslogtreecommitdiff
path: root/hosts/radicale/radicale.nix
blob: fa2b7bb18a6593b5cb495c76ceefb326d8cba40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ config, ... }:
{
  sops.secrets."radicale/htpasswd" = {
    owner = config.users.users.radicale.name;
  };
  services.radicale = {
    enable = true;
    settings = {
      server = {
        hosts = [ "0.0.0.0:5232" "[::]:5232" ];
        ssl = "False";
      };
      auth = {
        type = "htpasswd";
        htpasswd_filename = config.sops.secrets."radicale/htpasswd".path;
      };
      rights = {
        type = "owner_only";
      };
    };
  };
}