tweag / nix-hour

Questions for the weekly Nix Hour
MIT License
78 stars 3 forks source link

Lookup path syntax #58

Closed PicoGeyer closed 4 months ago

PicoGeyer commented 10 months ago

I originally installed NixOS with version 22.11 and later transitioned my configuration to use flakes I often use nix repl to explore the layout of nixpkgs, but lately I discovered that <nixpkgs> still points to a 22.11 version of nixpkgs whereas my system is now on 23.11.

How can I set NIX_PATH such that it points to the current version of nixpkgs that I'm using as seen from the flake point of view? I've seen: https://search.nixos.org/options?channel=23.11&show=nix.nixPath&from=0&size=50&sort=relevance&type=packages&query=nix.nixPath But I'm not sure what I would set it to so that it follows the flake version of nixpkgs.

infinisil commented 6 months ago

We're going to focus on lookup paths in general for this weeks Nix Hour, this Friday at 17:00 CET! If anybody has any extra questions about this topic, either: