Files
home-manager/tests/modules/programs/opencode/layer-service.sh
Austin Horstman 8de9cb9d5d opencode: add layers for mutable configuration
Use the upstream config selectors to load declarative settings without
linking the application-written files. Select the effective installed
paths consistently for sessions and the web service.
2026-10-13 20:07:57 -05:00

7 lines
227 B
Bash

#!@shell@
export OPENCODE_CONFIG=/home/hm-user/layers/config.json
export OPENCODE_TUI_CONFIG=/home/hm-user/.config/layers/tui.json
export PATH="/home/hm-user/.nix-profile/bin${PATH:+:$PATH}"
exec @opencode@/bin/opencode serve