liminix-fork/pkgs/liminix-tools/networking/default.nix
2023-08-31 23:52:59 +01:00

14 lines
223 B
Nix

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