gytis-ivaskevicius / flake-utils-plus

Use Nix flakes without any fluff.
MIT License
459 stars 52 forks source link

FUP broken on nixos-unstable-small #136

Closed andrevmatos closed 9 months ago

andrevmatos commented 9 months ago

Probably due to NixOS/nixpkgs#257458 It seems that this https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/2bf0f91643c2e5ae38c1b26893ac2927ac9bd82a/lib/mkFlake.nix#L149-L162

conflicts with assertions on nixpkgs

Now, only one of pkgs or config should be passed to config.nixpkgs.

Error:

       error:
       Failed assertions:
       - Your system configures nixpkgs with an externally created instance.
       `nixpkgs.config` options should be passed when creating the instance instead.

       Current value:
       ...
K900 commented 9 months ago

Line 149 here should just be removed, it's a no-op for either value of nixpkgs.pkgs.

andrevmatos commented 9 months ago

I'm running the fix here, system seems to build and run without any noticeable drawbacks like breakage from missing config.