MyNixOS website logo
option

programs.opencode.web.environmentFile

Path to a file containing environment variables for the opencode web service, in the format of an EnvironmentFile as described by systemd.exec(5) (i.e. KEY=VALUE pairs, one per line).

This is the recommended way to set OPENCODE_SERVER_PASSWORD without exposing the secret value in the Nix store.

Declarations
Type
null or absolute path
Default
null
Example
"/run/secrets/opencode-web"