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

21 lines
411 B
Nix
Raw Normal View History

2024-04-01 06:24:29 +02:00
{ config, ... }:
let
port = 8415;
dataDir = "/persist/data/radicale";
in
{
service.radicale = {
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" ];
services.nginx.virtualHosts."cal.moonythm.dev" =
config.satellite.proxy port { };
}