22 lines
313 B
Nix
22 lines
313 B
Nix
|
{
|
||
|
liminix,
|
||
|
wpa_supplicant,
|
||
|
lib,
|
||
|
}:
|
||
|
{
|
||
|
interface,
|
||
|
driver,
|
||
|
config-file,
|
||
|
}:
|
||
|
let
|
||
|
inherit (liminix.services) longrun;
|
||
|
inherit (lib.strings) escapeShellArg;
|
||
|
in
|
||
|
longrun {
|
||
|
name = "wpa_supplicant";
|
||
|
run =
|
||
|
''
|
||
|
${wpa_supplicant}/bin/wpa_supplicant -D${driver} -i${interface} -c ${config-file}
|
||
|
'';
|
||
|
}
|