forked from DGNum/liminix
17 lines
256 B
Nix
17 lines
256 B
Nix
|
{
|
||
|
liminix
|
||
|
, ifwait
|
||
|
, lib
|
||
|
}:
|
||
|
{ interface } :
|
||
|
let
|
||
|
inherit (liminix.services) oneshot;
|
||
|
in oneshot {
|
||
|
name = "${interface.name}.wlan-oper";
|
||
|
up = ''
|
||
|
${ifwait}/bin/ifbridgeable -v $(output ${interface} ifname)
|
||
|
'';
|
||
|
|
||
|
dependencies = [ interface ];
|
||
|
}
|