nixos/estuary: Add ping service to keep router happy for IPv6

This commit is contained in:
Jack O'Sullivan 2022-07-07 23:49:22 +01:00
parent 31561867f5
commit d12fc982f6

View File

@ -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" = {