From aa1823a43ad81c2cc5b1483953b16db6759557ae Mon Sep 17 00:00:00 2001 From: Hamcha Date: Sat, 30 Mar 2024 20:35:05 +0100 Subject: [PATCH] build: fix arion bin path --- nixos.nix | 2 +- src/stack/arion.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos.nix b/nixos.nix index 579f46a..ae5e478 100644 --- a/nixos.nix +++ b/nixos.nix @@ -35,7 +35,7 @@ in description = "Scatting system management"; after = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; - environment.STAX_ARION_BIN = "${getBin pkgs.arion}"; + environment.STAX_ARION_BIN = "${getBin pkgs.arion}/bin/arion"; environment.STAX_DIR = cfg.stackDir; environment.STAX_BIND = cfg.bindAddress; diff --git a/src/stack/arion.rs b/src/stack/arion.rs index 677748e..918e9f3 100644 --- a/src/stack/arion.rs +++ b/src/stack/arion.rs @@ -17,7 +17,6 @@ pub(super) async fn run( action: StackCommand, ) -> Result { let output = Command::new(arion_bin) - .uid(0) .args(action.command()) .current_dir(path) .output()