liminix

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

address.nix (348B)


      1 {
      2   liminix,
      3   callPackage,
      4 }:
      5 { client, interface }:
      6 let
      7   inherit (liminix.services) longrun;
      8   name = "dhcp6c.addr.${client.name}.${interface.name}";
      9   script = callPackage ./acquire-wan-address.nix { };
     10 in
     11 longrun {
     12   inherit name;
     13   run = "${script} ${client} $(output ${interface} ifname)";
     14   dependencies = [
     15     client
     16     interface
     17   ];
     18 }