2023-09-25 00:29:30 +02:00
|
|
|
{
|
|
|
|
liminix
|
|
|
|
, lib
|
|
|
|
, callPackage
|
|
|
|
}:
|
|
|
|
{ client, interface } :
|
|
|
|
let
|
|
|
|
inherit (liminix.services) longrun;
|
|
|
|
inherit (lib) mkOption types;
|
|
|
|
name = "dhcp6c.addr.${client.name}.${interface.name}";
|
|
|
|
script = callPackage ./acquire-wan-address.nix { };
|
|
|
|
in longrun {
|
|
|
|
inherit name;
|
2024-02-13 22:41:43 +01:00
|
|
|
run = "${script} $SERVICE_OUTPUTS/${client.name} $(output ${interface} ifname)";
|
2023-09-25 00:29:30 +02:00
|
|
|
dependencies = [ client interface ];
|
|
|
|
}
|