1
0
liminix/modules/dhcp6c/prefix.nix

19 lines
377 B
Nix
Raw Normal View History

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