blueprint icon indicating copy to clipboard operation
blueprint copied to clipboard

nixpkgs config is not passed from global blueprint configuration to hosts

Open Yethal opened this issue 1 year ago • 5 comments

Describe the bug

Regardless of which nixpkgs options I declare in blueprint they are not passed to any of the hostd

To Reproduce

Steps to reproduce the behavior:

  1. Navigate to templates/nixos-and-darwin-shared-homes
  2. Run nix flake show (no issues as expected)
  3. In modules/home/home-shared.nix add any unfree package to home.packages
  4. Run nix flake show again (nix refuses to evaluate, as expected)
  5. Add nixpkgs.config.allowUnfree = true; to blueprint invocation
  6. Run nix flake show again (nix still refuses to evaluate)

Expected behavior I expected blueprint to pass the nixpkgs instance to hosts the same way it does for homeManager

System information

Additional context Modified value is visible in homeConfigurations under outputs.legacyPackages.x86_64-linux.homeConfigurations."me@my-nixos".config.nixpkgs.config but not visible anywhere under outputs.nixosConfigurations.my-nixos so it seems like passing nixpkgs just doesn't work for some outputs at all.

Yethal avatar Apr 18 '25 18:04 Yethal

there are so many issues with this, it should be disabled for now...

JumpIn-Git avatar Apr 19 '25 06:04 JumpIn-Git

Having the same problem. First day using blueprint, I thought I was crazy

jDmacD avatar Apr 22 '25 18:04 jDmacD

Is there a workaround for this? Because home-manager refuses nixpkgs.config.allowUnfree = true when useGlobalPkgs is true, and I would prefer to not disable this one.

calops avatar Aug 21 '25 15:08 calops

@calops This actually works fine with home-manager, it's nixosConfigurations that do not pick this up

Yethal avatar Aug 25 '25 07:08 Yethal

You're right, my bad. I was confused by the poor error messages.

Note that nix-darwin also doesn't pick up on this but that's probably not surprising. It's an easy workaround in the meantime.

calops avatar Aug 25 '25 08:08 calops