You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support declaratively managed global configuration files, or provide a supported Home Manager integration path #83
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.
Apply the Home Manager configuration and run QQ again.
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
fix(config): accept leaf symlinks for user-global configuration files (…
chore(release): v0.1.2 (#99)