feat(opencode): also expose formatters on PATH

Re-add home.packages so nixfmt, prettier, shfmt, ruff, taplo and stylua
are available for interactive use, alongside the store-path-pinned
references in the generated config.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Harald Hoyer 2026-05-21 22:07:33 +02:00
parent d10570a0d8
commit e9bedc0455

View file

@ -107,6 +107,16 @@ in
};
config = mkIf cfg.enable {
# Also expose the formatters on PATH for interactive use.
home.packages = [
pkgs.nixfmt-rfc-style
pkgs.nodePackages.prettier
pkgs.shfmt
pkgs.ruff
pkgs.taplo
pkgs.stylua
];
# The agents/, commands/ and other files come from the repo dir; config.json
# is generated from opencodeConfig above so formatter paths stay pinned.
xdg.configFile."opencode" = {