From 441df05d8658f32918c35ed4b15cb5cf68c40702 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Sun, 3 May 2026 16:09:31 +0200 Subject: [PATCH] fix(opencode): add git and dev tools to service PATH The opencode-serve unit ran with systemd's minimal default PATH, so shell commands invoked by the agent (git, make, nix, node, rg, etc.) were not found. Set systemd.services.opencode-serve.path on both sgx and amd to a common dev toolset. --- systems/x86_64-linux/amd/opencode.nix | 17 +++++++++++++++++ systems/x86_64-linux/sgx/opencode.nix | 17 +++++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/systems/x86_64-linux/amd/opencode.nix b/systems/x86_64-linux/amd/opencode.nix index 68f62f4..4c7b91b 100644 --- a/systems/x86_64-linux/amd/opencode.nix +++ b/systems/x86_64-linux/amd/opencode.nix @@ -16,6 +16,23 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + path = with pkgs; [ + git + bash + coreutils + findutils + gnused + gnugrep + gawk + gnumake + nix + nodejs + ripgrep + fd + curl + which + ]; + environment = { HOME = homeDir; }; diff --git a/systems/x86_64-linux/sgx/opencode.nix b/systems/x86_64-linux/sgx/opencode.nix index 9ea0017..286df36 100644 --- a/systems/x86_64-linux/sgx/opencode.nix +++ b/systems/x86_64-linux/sgx/opencode.nix @@ -16,6 +16,23 @@ in after = [ "network.target" ]; wantedBy = [ "multi-user.target" ]; + path = with pkgs; [ + git + bash + coreutils + findutils + gnused + gnugrep + gawk + gnumake + nix + nodejs + ripgrep + fd + curl + which + ]; + environment = { HOME = homeDir; };