From ffc6492365951ae924e8a1baea344cc7f89f9b20 Mon Sep 17 00:00:00 2001 From: Raito Bezarius Date: Sat, 7 Sep 2024 17:13:29 +0200 Subject: [PATCH] fix(ubus): set the socket path properly Signed-off-by: Raito Bezarius --- modules/ubus/service.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 + ''; }