MyNixOS website logo

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.

Declarations
Type
JSON value
Default
{ }
Example
{
  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" ];
}