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

bug: nixpkgs settings can't be set in multiple places, unlike on nixOS configuration #6015

Open
2 tasks done
stereomato opened this issue Oct 28, 2024 · 0 comments
Open
2 tasks done
Assignees
Labels
bug triage Issues or feature request that have not been triaged yet

Comments

@stereomato
Copy link

Are you following the right branch?

  • My Nixpkgs and Home Manager versions are in sync

Is there an existing issue for this?

  • I have searched the existing issues

Issue description

Basically, right now I want to set overlays and config on different places, to keep stuff that's related to each other close. I can do this on NixOS configuration:

nix-repl> config.nixpkgs.overlays
[
  «lambda @ /nix/store/hdhxrzjcw5c3xddrq24f8hcvfm1h60q4-source/machines/common/imports/overlays.nix:4:3»
  «lambda @ /nix/store/hdhxrzjcw5c3xddrq24f8hcvfm1h60q4-source/machines/Taihou/kernel.nix:3:3»
]

but not with home-manager:

nix-repl> config.home-manager.users.stereomato.nixpkgs.overlays   
[ «lambda @ /nix/store/hdhxrzjcw5c3xddrq24f8hcvfm1h60q4-source/users/stereomato/imports/overlays.nix:3:3» ]

I set my overlay and (and nixpkgs.config too, which also doesn't work) on two different files:

Now, I do have home-manager.useGlobalPkgs = false because I want to keep nixos nixpkgs and home-manager nixpkgs separate.

Maintainer CC

Maintainers aren't listed, so I'll tag:
@rycee
@emilazy

System information

- system: `"x86_64-linux"`
 - host os: `Linux 6.11.5-zen1, NixOS, 24.11 (Vicuna), 24.11.20241025.18536bf`
 - multi-user?: `yes`
 - sandbox: `yes`
 - version: `nix-env (Nix) 2.24.9`
 - nixpkgs: `/nix/store/wb6agba4kfsxpbnb5hzlq58vkjzvbsk6-source`
@stereomato stereomato added bug triage Issues or feature request that have not been triaged yet labels Oct 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug triage Issues or feature request that have not been triaged yet
Projects
None yet
Development

No branches or pull requests

4 participants