liminix-fork/modules/dhcp6c/prefix.nix

17 lines
405 B
Nix
Raw Normal View History

2023-09-25 00:29:30 +02:00
{
liminix
, lib
, callPackage
}:
{ client, interface } :
let
inherit (liminix.services) longrun;
inherit (lib) mkOption types;
name = "dhcp6c.prefix.${client.name}.${interface.name}";
script = callPackage ./acquire-delegated-prefix.nix { };
in longrun {
inherit name;
run = "${script} $SERVICE_OUTPUTS/${client.name} $(output ${interface} ifname)";
2023-09-25 00:29:30 +02:00
dependencies = [ client interface ];
}