liminix

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

address.nix (400B)


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