From 70738f4c97de6a71d67c26d5337cd7bea616308b Mon Sep 17 00:00:00 2001 From: lew Date: Tue, 7 Apr 2026 13:49:54 +0100 Subject: [PATCH] add bash and node to path so pnpm build functions --- hosts/lab/wynne.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/lab/wynne.nix b/hosts/lab/wynne.nix index c47b1fa..3183296 100644 --- a/hosts/lab/wynne.nix +++ b/hosts/lab/wynne.nix @@ -40,6 +40,7 @@ in systemd.services.wynne-rebuild = { description = "Clone/pull and build wynne.rs"; after = [ "network-online.target" ]; + path = [ pkgs.nodejs pkgs.bash ]; environment = { ASTRO_DB_REMOTE_URL = "file:${dataDir}/data/guestbook.db"; }; @@ -61,7 +62,7 @@ in ${pkgs.git}/bin/git fetch origin ${pkgs.git}/bin/git reset --hard origin/master ${pkgs.pnpm}/bin/pnpm install --frozen-lockfile - ${pkgs.pnpm}/bin/pnpm build + ${pkgs.pnpm}/bin/pnpm build ''; # + prefix runs this line as root (wynne user can't restart services) ExecStartPost = "+/run/current-system/sw/bin/systemctl restart wynne";