You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Niv seems to hardcode names to things of format like *-nixpkgs-src according to a cursory reading of the file nix/sources.nix. This is problematic while interoperating with flakes, since if you put a path of any name except *-source as a "path" entry in the nix flake registry, it will be pointlessly copied on nearly every nix command run.
I use the option nix.registry.nixpkgs in my non flake NixOS configuration to set the nixpkgs flake in the system registry to the same nixpkgs the system was built with.
For instance, nix run nixpkgs#hello will get the same hello as nix-shell -p.
However Nix doesn't like it when you name store paths anything but "source" then put them in a flake registry and will recopy them every time if so. I wound up just patching niv's sources.nix about it.
Niv seems to hardcode names to things of format like
*-nixpkgs-src
according to a cursory reading of the filenix/sources.nix
. This is problematic while interoperating with flakes, since if you put a path of any name except*-source
as a "path" entry in the nix flake registry, it will be pointlessly copied on nearly everynix
command run.That limitation is filed upstream here: NixOS/nix#7075
It would be good to be able to override these names to workaround this Nix issue.
The text was updated successfully, but these errors were encountered: