programs.b4.enable
Whether to enable b4, a tool for kernel-style patch/email review workflows.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.b4.package
The b4 package to use.
Type: package
Default:
pkgs.b4
Declared by:
programs.b4.agentReview.enable
Whether to enable the AI reviewer behind the a key in the b4 review TUI, by writing the
review-agent-command and review-agent-prompt-path [b4] settings
.
Type: boolean
Default:
false
Example:
true
Declared by:
programs.b4.agentReview.command
The command b4 runs for the agent action. It is POSIX-shlex-split, gets
a final argument pointing at
programs.b4.agentReview.instructions, and runs with the
repository top as its working directory, so relative .git paths
resolve per-repo.
Type: string
Default:
A Claude Code invocation (pkgs.claude-code)
Example:
"${lib.getExe pkgs.aider-chat} --message"
Declared by:
programs.b4.agentReview.instructions
Instructions telling the agent how to write review files under
.git/b4-review/. Written to review-agent-prompt-path as an
absolute path, so it applies to every repository.
Type: string or absolute path
Default:
b4’s shipped misc/agent-reviewer.md
Example:
./my-agent-reviewer.md
Declared by:
programs.b4.emacsPackage
Selector picking b4’s b4-review-mode.el out of an Emacs package set, for
adding to e.g. programs.emacs.extraPackages.
Type: function that evaluates to a(n) package
Default:
epkgs: epkgs.b4-review-mode
Declared by:
programs.b4.emacsSyntax
Whether to add b4’s b4-review-mode, which autoloads for
*.b4-review.eml files, to programs.emacs. Editors managed
outside home-manager can instead consume
programs.b4.emacsPackage.
Type: boolean
Default:
config.programs.emacs.enable
Declared by:
programs.b4.settings
Settings making up git-config’s [b4] section, b4’s only configuration
source. The generated section is merged into
$XDG_CONFIG_HOME/git/config, so a non-empty value requires
programs.git.enable.
See https://b4.docs.kernel.org/en/latest/config.html for the keys.
Type: attribute set of (boolean or signed integer or string or list of string)
Default:
{ }
Example:
{
attestation-policy = "hardfail";
midmask = "https://lore.kernel.org/all/%s";
}
Declared by:
programs.b4.vimPlugin
The b4-review-vim package to use. b4’s Vim review-editor files as a runtimepath plugin, for adding to
e.g. programs.neovim.plugins.
Type: package
Default:
pkgs.vimPlugins.b4-review-vim
Declared by:
programs.b4.vimSyntax
Whether to add b4’s review-editor syntax highlighting, which activates for
*.b4-review.eml buffers, to
programs.vim/programs.neovim. Editors managed outside
home-manager can instead put programs.b4.vimPlugin on their
runtimepath.
Type: boolean
Default:
config.programs.vim.enable || config.programs.neovim.enable
Declared by: