From 553214474747dce3a9cdb440a8f0caabc28eaac8 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Sat, 1 Jul 2023 12:48:01 +0100 Subject: [PATCH] hardcode global wan address, temporarily --- examples/rotuer.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/examples/rotuer.nix b/examples/rotuer.nix index 3133c88..046994a 100644 --- a/examples/rotuer.nix +++ b/examples/rotuer.nix @@ -295,6 +295,15 @@ in rec { dependencies = [ services.wan ]; }; + services.set-wan-address = + oneshot { + name = "set-wan-address"; + # FIXME nasty bit of hardcoding - should get this from dhcp6c + up = "ip address add 2001:8b0:1111:1111:0:ffff:51bb:4cf2/128 dev ppp0"; + down = "ip address del 2001:8b0:1111:1111:0:ffff:51bb:4cf2/128 dev ppp0"; + dependencies = [ services.dhcp6 ]; + }; + services.acquire-lan-prefix = let script = pkgs.callPackage ./acquire-delegated-prefix.nix { }; in longrun { @@ -322,6 +331,7 @@ in rec { config.services.hostname dhcp6 acquire-lan-prefix + set-wan-address ]; }; defaultProfile.packages = with pkgs; [