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
Setting nixpkgs.overlays in Home Manager Module on NixOS or nix-darwin cause warning on when home-manager.useGlobalPkgs = true #877
Setting nixpkgs.overlays in Home Manager Module on NixOS or nix-darwin cause warning on when home-manager.useGlobalPkgs = true. I've encountered this warning when switching my NixOS config:
evaluation warning: <user> profile: You have set either `nixpkgs.config` or `nixpkgs.overlays` while using `home-manager.useGlobalPkgs`.
This will soon not be possible. Please remove all `nixpkgs` options when using `home-manager.useGlobalPkgs`.
I have no nixpkgs.config nor nixpkgs.overlay config on my home manager files. So I started looking at how I set up my home manager modules and found out that I had a redundant use of NUR modules because I have on NixOS and Home Manager at the same time, and also configured the overlay on nixpkgs.
It's not easy to know where how this happens. So I would advise a warning on the README or some assertion in the module which I don't how feasible is to do.
TL;DR: But either way, I want to create this issue in case someone else bumps into this themselves. Just setup the overlay manually and do not import hm module.
The NUR Home Manager module is an overlay, so you can either choose to set useGlobalPkgs false or not use the overlay. If you want to keep useGlobalPkgs, you can use the flake's legacyPackages. See nix-community/home-manager#6079
The NUR Home Manager module is an overlay, so you can either choose to set useGlobalPkgs false or not use the overlay. If you want to keep useGlobalPkgs, you can use the flake's legacyPackages. See nix-community/home-manager#6079
Sure. What I mean is that this case should be documented.
Activity
Pandapip1 commentedon Apr 16, 2025
The NUR Home Manager module is an overlay, so you can either choose to set
useGlobalPkgsfalse or not use the overlay. If you want to keepuseGlobalPkgs, you can use the flake'slegacyPackages. See nix-community/home-manager#6079Pablo1107 commentedon Apr 16, 2025
Sure. What I mean is that this case should be documented.
Pandapip1 commentedon Apr 17, 2025
This seems more like a failure of documentation on home-manager's side, but I'll consider this.