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

19 lines
388 B
Nix

{ config, ... }:
let
port = config.satellite.ports.radicale;
dataDir = "/persist/data/radicale";
in
{
services.radicale = {
enable = true;
settings = {
server.hosts = [ "localhost:${toString port}" ];
storage.filesystem_folder = dataDir;
};
};
systemd.tmpfiles.rules = [ "d ${dataDir} 0700 radicale radicale" ];
satellite.nginx.at.cal.port = port;
}