summaryrefslogtreecommitdiffstats
path: root/usecases/server/radicale.nix
blob: b20bff819d1962227a6d0435037ff74090208470 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
inputs:

{ config, ... }:

{
  services.radicale = {
    enable = true;
    settings = {
      # Bind address on VPN interface only
      server.hosts = "[${config.topology.mainVpn.currentNodeIP}]:5232";
    };
  };

  networking.firewall.interfaces.${config.topology.mainVpn.interfaceName}.allowedTCPPorts = [
    5232
  ];
}