danth / stylix

System-wide colorscheming and typography for NixOS
https://stylix.danth.me/
MIT License
912 stars 107 forks source link

Gnome is broken on latest Nix #282

Closed lovesegfault closed 3 months ago

lovesegfault commented 3 months ago

With Nix 2.21, the module no longer evaluates:

       … while calling the 'getFlake' builtin
         at /nix/store/n8l5fyh7vpjy09n4b2lkz4q2hxsrc8a6-modules/gnome/nixos.nix:6:10:
            5|   # to avoid infinite loops if the lib in arguments depends on nixpkgs.overlays
            6|   lib = (builtins.getFlake "github:nix-community/nixpkgs.lib/174d7dc67189bc4a53f1bffb4fb9d0f13b79cd3c").lib;
             |          ^
            7|
       error: cannot call 'getFlake' on unlocked flake reference 'github:nix-community/nixpkgs.lib/174d7dc67189bc4a53f1bffb4fb9d0f13b79cd3c', at «none»:0 (use --impure to override)
prescientmoon commented 3 months ago

Is there any way to fix this on release-23.11? @lovesegfault

prescientmoon commented 3 months ago

It looks like my nix was coming from unstable, even though the rest of the system was on stable

prescientmoon commented 3 months ago

Although I now think I'm locked, and I can't figure out how to rebuild. Entering a shell with an older nix doesn't seem to fix it