hardcode global wan address, temporarily

This commit is contained in:
Daniel Barlow 2023-07-01 12:48:01 +01:00
parent 9aa5ff6ed1
commit 5532144747

View file

@ -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; [