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:
parent
d10570a0d8
commit
e9bedc0455
1 changed files with 10 additions and 0 deletions
|
|
@ -107,6 +107,16 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
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
|
# The agents/, commands/ and other files come from the repo dir; config.json
|
||||||
# is generated from opencodeConfig above so formatter paths stay pinned.
|
# is generated from opencodeConfig above so formatter paths stay pinned.
|
||||||
xdg.configFile."opencode" = {
|
xdg.configFile."opencode" = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue