1
Fork 0
satellite/hosts/nixos/lapetus/services/radicale.nix

19 lines
388 B
Nix
Raw Normal View History

2024-04-01 06:24:29 +02:00
{ config, ... }:
let
2024-06-13 15:47:36 +02:00
port = config.satellite.ports.radicale;
2024-04-01 06:24:29 +02:00
dataDir = "/persist/data/radicale";
in
{
2024-04-01 06:35:49 +02:00
services.radicale = {
2024-04-01 06:24:29 +02:00
enable = true;
settings = {
server.hosts = [ "localhost:${toString port}" ];
2024-04-01 06:24:29 +02:00
storage.filesystem_folder = dataDir;
};
};
systemd.tmpfiles.rules = [ "d ${dataDir} 0700 radicale radicale" ];
2024-06-13 15:47:36 +02:00
satellite.nginx.at.cal.port = port;
2024-04-01 06:24:29 +02:00
}