nixos-config/machines/orbi/network-tinc.nix

30 lines
592 B
Nix
Raw Normal View History

{ pkgs, config, ... }:
2023-12-09 17:15:50 +01:00
{
networking.firewall = {
2024-08-29 03:26:04 +02:00
allowedTCPPorts = [
655
721
];
allowedUDPPorts = [
655
721
];
2023-12-09 17:15:50 +01:00
};
tinc.private.enable = true;
2024-03-03 21:58:52 +01:00
tinc.private.ipv4 = "10.23.42.100";
2023-12-09 17:15:50 +01:00
healthchecks.localCommands.ping-private = pkgs.writers.writeBash "ping-private" ''
ping -c 1 -W 5 ${config.tinc.private.ipv4}
'';
# tinc.secret.enable = true;
# tinc.secret.ipv4 = "10.123.42.100";
#
# healthchecks.localCommands.ping-secret = pkgs.writers.writeBash "ping-secret" ''
# ping -c 1 -W 5 ${config.tinc.secret.ipv4}
# '';
2023-12-09 17:15:50 +01:00
}