nixpkgs config is not passed from global blueprint configuration to hosts
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:
- Navigate to templates/nixos-and-darwin-shared-homes
- Run
nix flake show(no issues as expected) - In
modules/home/home-shared.nixadd any unfree package tohome.packages - Run
nix flake showagain (nix refuses to evaluate, as expected) - Add
nixpkgs.config.allowUnfree = true;to blueprint invocation - Run
nix flake showagain (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.
there are so many issues with this, it should be disabled for now...
Having the same problem. First day using blueprint, I thought I was crazy
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 This actually works fine with home-manager, it's nixosConfigurations that do not pick this up
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.