2.home-manager/tests/modules/programs/opencode/web-service-environment-file.service
squat 6267895e98 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.
2026-04-01 16:47:32 -05:00

12 lines
214 B
Desktop File

[Install]
WantedBy=default.target
[Service]
EnvironmentFile=/run/secrets/opencode
ExecStart=@opencode@/bin/opencode serve
Restart=always
RestartSec=5
[Unit]
After=network.target
Description=OpenCode Web Service