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

{ config, ... }:

{
  # TODO: use RFC42 settings for NixOS 21.05
  services.radicale = {
    enable = true;
    config = ''
      [server]
      hosts = ${config.topology.mainVpn.currentNodeIP}:5232
    '';
  };

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