From ee5d2330c534c27933cddfa2152faae591e34f45 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 15 Aug 2024 20:03:01 +0200 Subject: [PATCH] hosts/carbon: Renew delegated IPv6 prefixes on ppp reconnect --- hosts/carbon/ppp.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/hosts/carbon/ppp.nix b/hosts/carbon/ppp.nix index 7502205..55c1e93 100644 --- a/hosts/carbon/ppp.nix +++ b/hosts/carbon/ppp.nix @@ -76,4 +76,13 @@ ''; }; + environment.etc."ppp/ipv6-up" = { + text = '' + #!${pkgs.runtimeShell} + + set -euo pipefail + + ${pkgs.dhcpcd}/bin/dhcpcd --renew $1 + ''; + }; }