diff --git a/modules/ubus/service.nix b/modules/ubus/service.nix index e1e297e..80548c6 100644 --- a/modules/ubus/service.nix +++ b/modules/ubus/service.nix @@ -9,5 +9,8 @@ let in longrun { # Long term: make it unique so that user can spawn multiple buses if they want. name = "ubus"; - run = "${package}/bin/ubusd"; + run = '' + mkdir -p /run/ubus + ${package}/bin/ubusd -s /run/ubus/ubus.sock + ''; }