programs.crush.settings
Home-Manager option
JSON value
Configuration written to $XDG_CONFIG_HOME/crush/crush.json. See <https://github.com/charmbracelet/crush> for the documentation. Crush expands $VAR and $(command) in configuration values, so secrets can be read at startup instead of being written to the Nix store. Note, "$schema": "https://charm.land/crush.json" is automatically added to the configuration.
type: JSON valueDefault
{ }Example
declared in: <home-manager/modules/programs/crush.nix>source unavailable{ models.large = { model = "claude-sonnet-4-20250514"; provider = "anthropic"; }; providers.deepseek = { type = "openai-compat"; base_url = "https://api.deepseek.com/v1"; api_key = "$(cat /run/secrets/deepseek-api-key)"; models = [ { id = "deepseek-chat"; name = "Deepseek V3"; } ]; }; lsp.nix.command = "nil"; options.disabled_tools = [ "sourcegraph" ]; permissions.allowed_tools = [ "view" ]; }