Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emit a warning when attempting to set nixpkgs.overlays while home-manager.useGlobalPkgs = true #6079

Open
justDeeevin opened this issue Nov 13, 2024 · 1 comment
Assignees

Comments

@justDeeevin
Copy link

Description

When home-manager.useGlobalPkgs = true, setting nixpkgs.overlays in the home configuration has no effect. I unknowingly had useGlobalPkgs enabled in my config and struggled for days with overlays not applying. There should be a warning emitted if a user tries to add an overlay to nixpkgs in their home configuration while useGlobalPkgs is enabled, informing them of this relationship.

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/setting-nixpkgs-overlays-in-home-manager-config-does-nothing/55928/5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants