2024-10-09 14:27:12 +02:00
|
|
|
{ pkgs, config, ... }:
|
2023-12-17 13:06:57 +01:00
|
|
|
{
|
|
|
|
|
|
|
|
tinc.private.enable = true;
|
2023-12-17 16:17:28 +01:00
|
|
|
tinc.private.ipv4 = "10.23.42.29";
|
2023-12-17 13:06:57 +01:00
|
|
|
|
2024-10-09 14:27:12 +02:00
|
|
|
healthchecks.localCommands.ping-private = pkgs.writers.writeBash "ping-private" ''
|
|
|
|
ping -c 1 -W 5 ${config.tinc.private.ipv4}
|
|
|
|
'';
|
|
|
|
|
2024-06-01 14:48:25 +02:00
|
|
|
tinc.secret.enable = true;
|
|
|
|
tinc.secret.ipv4 = "10.123.42.29";
|
2023-12-17 13:06:57 +01:00
|
|
|
|
2024-10-09 14:27:12 +02:00
|
|
|
healthchecks.localCommands.ping-secret = pkgs.writers.writeBash "ping-secret" ''
|
|
|
|
ping -c 1 -W 5 ${config.tinc.secret.ipv4}
|
|
|
|
'';
|
|
|
|
|
2023-12-17 13:06:57 +01:00
|
|
|
}
|