opencode: add environmentFile option to set OPENCODE_SERVER_PASSWORD

This commit introduces a new option for the Opencode web service to
allow configuring an environment file so that we can safely specify an
`OPENCODE_SERVER_PASSWORD` environment variable to secure access to the
service without exposing the secret to the Nix store.
This commit is contained in:
squat 2026-03-20 16:09:18 +01:00 committed by Austin Horstman
parent 51f49da12c
commit 6267895e98
5 changed files with 102 additions and 5 deletions

View file

@ -25,4 +25,5 @@
opencode-mcp-integration = ./mcp-integration.nix;
opencode-mcp-integration-with-override = ./mcp-integration-with-override.nix;
opencode-web-service = ./web-service.nix;
opencode-web-service-environment-file = ./web-service-environment-file.nix;
}