diff --git a/configuration.nix b/configuration.nix index 65fef62..18d4bd0 100644 --- a/configuration.nix +++ b/configuration.nix @@ -90,6 +90,7 @@ serviceConfig = { Type = "simple"; User = "jet"; + Environment = [ "OPENCODE_DB=opencode.db" ]; Restart = "always"; RestartSec = 5; TimeoutStartSec = 75; diff --git a/home-modules/lib.nix b/home-modules/lib.nix index a4ef031..89513c2 100644 --- a/home-modules/lib.nix +++ b/home-modules/lib.nix @@ -16,6 +16,7 @@ let nativeBuildInputs = [ pkgs.makeWrapper ]; postBuild = '' wrapProgram "$out/bin/opencode" \ + --set OPENCODE_DB opencode.db \ --prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}" ''; };