Error when upgrading to nixos 23.11

When i try to update my system to 23.11 I get the following error.

error: infinite recursion encountered

       at /nix/store/7i525k013ds687vgp12lyhwmx79qd4qj-source/lib/modules.nix:1014:14:

         1013|     { _type = "override";
         1014|       inherit priority content;
             |              ^
         1015|     };
(use '--show-trace' to show detailed location information)

Can someone point me in the direction of the bug?

You can find the whole config at
https://github.com/RaHoni/nixos-conf/tree/2311

just wanted to point out that you forgot to update home-manager-stable input to point to the release-23.11 branch to match nixpkgs

Yeah I did this when I first tried to update. Put tried to find the culprit by minimizing changes after it failed.

After asking here I found the solution to my problem. It was the artifact from using channels at an earlier stage.

So for someone else make sure you don’t set ‘’‘nixpkgs.pkgs’‘’ when using flakes.