liminix-fork/pkgs/liminix-tools/networking/default.nix

15 lines
223 B
Nix
Raw Normal View History

{
ifwait
, serviceFns
}:
{
ifup = name : ifname : ''
. ${serviceFns}
${ifwait}/bin/ifwait -v ${ifname} present
ip link set up dev ${ifname}
(in_outputs ${name}
echo ${ifname} > ifname
)
'';
}