From d12fc982f67b3c8f634e119feecbf5f9e3d4c2dd Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Thu, 7 Jul 2022 23:49:22 +0100 Subject: [PATCH] nixos/estuary: Add ping service to keep router happy for IPv6 --- nixos/boxes/colony/vms/estuary/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nixos/boxes/colony/vms/estuary/default.nix b/nixos/boxes/colony/vms/estuary/default.nix index 64e0648..394e89b 100644 --- a/nixos/boxes/colony/vms/estuary/default.nix +++ b/nixos/boxes/colony/vms/estuary/default.nix @@ -72,6 +72,23 @@ }; }; + systemd = { + services = { + # Use this as a way to make sure the router always knows we're here (NDP seems kindy funky) + ipv6-neigh-keepalive = + let + waitOnline = "systemd-networkd-wait-online@wan.service"; + in + { + enable = true; + requires = [ waitOnline ]; + after = [ waitOnline ]; + serviceConfig.ExecStart = "${pkgs.iputils}/bin/ping -n -i 10 2600::"; + wantedBy = [ "multi-user.target" ]; + }; + }; + }; + systemd.network = { links = { "10-phy1g0" = {