nixos-config/machines/orbi/service-taskchampion.nix
2024-09-30 20:48:04 +09:00

28 lines
611 B
Nix

{
config,
lib,
pkgs,
zerotierInterface,
...
}:
{
healthchecks.closed.public.ports.taskchampion = [ config.services.taskchampion-sync-server.port ];
healthchecks.http.taskchampion = {
url = "http://orbi.private:10222";
expectedContent = "TaskChampion sync server";
};
networking.firewall.interfaces.wg0.allowedTCPPorts = [
config.services.taskchampion-sync-server.port
];
networking.firewall.interfaces.wg0.allowedUDPPorts = [
config.services.taskchampion-sync-server.port
];
services.taskchampion-sync-server = {
enable = true;
openFirewall = false;
};
}