feat: set opencode db path explicitly
This commit is contained in:
parent
d276c2d788
commit
da72bc5483
2 changed files with 2 additions and 0 deletions
|
|
@ -90,6 +90,7 @@
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "simple";
|
Type = "simple";
|
||||||
User = "jet";
|
User = "jet";
|
||||||
|
Environment = [ "OPENCODE_DB=opencode.db" ];
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
RestartSec = 5;
|
RestartSec = 5;
|
||||||
TimeoutStartSec = 75;
|
TimeoutStartSec = 75;
|
||||||
|
|
|
||||||
|
|
@ -16,6 +16,7 @@ let
|
||||||
nativeBuildInputs = [ pkgs.makeWrapper ];
|
nativeBuildInputs = [ pkgs.makeWrapper ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram "$out/bin/opencode" \
|
wrapProgram "$out/bin/opencode" \
|
||||||
|
--set OPENCODE_DB opencode.db \
|
||||||
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
--prefix LD_LIBRARY_PATH : "${pkgs.lib.makeLibraryPath [ pkgs.stdenv.cc.cc.lib ]}"
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue