blob: 2157ad0565913b1a89ffc779fdd03feb116b1595 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
{ config, pkgs, ... }:
{
services.radicale = {
enable = true;
settings = {
auth = {
type = "htpasswd";
# generate with
# nix shell nixpkgs#apacheHttpd --command htpasswd -cB .htpasswd username
htpasswd_filename = "/etc/radicale/.htpasswd";
htpasswd_encryption = "bcrypt";
};
storage = {
filesystem_folder = "/srv/dav/collections";
hook = "${
pkgs.writers.writePython3Bin "create-bday-cal" {
libraries = with pkgs.python3Packages; [
python-dateutil
vobject
];
} (builtins.readFile ./create-bday-cal.py)
}/bin/create-bday-cal";
};
web.type = "none";
};
};
systemd.services.radicale.personal.monitor = true;
}
|