fix(opencode): set LD_LIBRARY_PATH for prebuilt node bindings

The file watcher binding (and other node-precompiled .node modules
loaded via dlopen) failed with "libstdc++.so.6: cannot open shared
object file" because systemd services don't inherit the user shell's
LD path. Reuse the nix-ld library list so the service sees the same
common libraries unwrapped binaries get globally.
This commit is contained in:
Harald Hoyer 2026-05-03 16:29:24 +02:00
parent 441df05d86
commit 5693009488
2 changed files with 2 additions and 0 deletions

View file

@ -35,6 +35,7 @@ in
environment = {
HOME = homeDir;
LD_LIBRARY_PATH = lib.makeLibraryPath config.programs.nix-ld.libraries;
};
serviceConfig = {