Skip to content

Support declaratively managed global configuration files, or provide a supported Home Manager integration path #83

Closed

Description

@lg2m

Summary

Installing QQ through Nix/Home Manager currently leads to two related configuration errors:

error: model must be configured

After adding a global configuration through Home Manager, QQ then rejects the generated configuration because Home Manager manages files using symlinks:

error: symbolic links are not accepted as configuration sources: /home/zmeyer/.config/qq/config.ron

This makes it difficult to configure QQ declaratively on NixOS.

Environment

  • OS: NixOS
  • Configuration manager: Home Manager
  • QQ version: 0.1.1 (51ccf13 2026-09-19)
  • Global configuration path reported by qq config paths:

/home/zmeyer/.config/qq

Reproduction

  1. Install QQ without creating a configuration.
  2. Run:
    qq
  3. QQ reports:
    error: model must be configured
  4. Add a Home Manager configuration:
xdg.configFile."qq/config.ron".text = ''
  (
    version: 1,
    model: "xai/grok-4.6",
  )
'';
  1. Apply the Home Manager configuration and run QQ again.
  2. QQ reports:
    error: symbolic links are not accepted as configuration sources: /home/zmeyer/.config/qq/config.ron
    Home Manager places the generated file in the Nix store and creates a symlink at ~/.config/qq/config.ron, which QQ rejects.

Expected behavior

QQ should provide a supported way to use declaratively managed global configuration on NixOS/Home Manager.
Potential solutions could include:

  • Accepting symlinked global configuration files when their resolved target is a regular file.
  • Providing a narrowly scoped exception for immutable Nix store targets.
  • Supporting a separate environment variable or configuration path intended for declaratively managed configuration.
  • Documenting another supported Home Manager integration that does not require copying the file into place imperatively.

QQ should continue rejecting unsafe project configuration symlinks if that security boundary is intentional. The request is specifically for a safe mechanism to manage the user-level global configuration declaratively.

Additional context

The initial model must be configured error is understandable because QQ intentionally has no product-wide default model. However, the natural declarative fix is blocked by the symlink restriction.
QQ_CONFIG_CONTENT may work as a runtime workaround, but placing an entire RON document in the process environment is less convenient and less idiomatic than managing ~/.config/qq/config.ron through Home Manager.

Activity

  1. added a commit that references this issue on Sep 20, 2026
    dc902dc
  2. added a commit that references this issue on Sep 21, 2026
    218857c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions