gytis-ivaskevicius/flake-utils-plus

FUP broken on nixos-unstable-small

Closed this issue · 2 comments

Probably due to NixOS/nixpkgs#257458
It seems that this

nixpkgs.config = selectedNixpkgs.config;
nixpkgs.pkgs =
# Make sure we don't import nixpkgs again if not
# necessary. We can't use `config.nixpkgs.config`
# because that triggers infinite recursion.
if (hostConfig.nixpkgs.config == { }) then
selectedNixpkgs
else
import patchedChannel
{
inherit (host) system;
overlays = selectedNixpkgs.overlays;
config = selectedNixpkgs.config // config.nixpkgs.config;
} // { inherit (selectedNixpkgs) name input; };

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

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

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