2024-09-04 16:07:49 +02:00
|
|
|
{
|
|
|
|
liminix
|
|
|
|
, writeText
|
|
|
|
, lib
|
|
|
|
}:
|
|
|
|
{ package } :
|
|
|
|
let
|
|
|
|
inherit (liminix.services) longrun;
|
|
|
|
in longrun {
|
|
|
|
# Long term: make it unique so that user can spawn multiple buses if they want.
|
|
|
|
name = "ubus";
|
2024-09-07 17:13:29 +02:00
|
|
|
run = ''
|
|
|
|
mkdir -p /run/ubus
|
|
|
|
${package}/bin/ubusd -s /run/ubus/ubus.sock
|
|
|
|
'';
|
2024-09-04 16:07:49 +02:00
|
|
|
}
|