From da72bc5483078d1cabab1d956eaf0668dec244cf Mon Sep 17 00:00:00 2001 From: Jet Date: Sun, 17 May 2026 10:58:42 -0700 Subject: [PATCH] feat: set opencode db path explicitly --- configuration.nix | 1 + home-modules/lib.nix | 1 + 2 files changed, 2 insertions(+) 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 ]}" ''; };