13
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
this post was submitted on 02 May 2024
13 points (100.0% liked)
Nix / NixOS
1758 readers
43 users here now
Main links
Videos
founded 1 year ago
MODERATORS
It's possible (and I think advisable) to set your flake nixos config to set the system flake registry to point to the same nixpkgs revision that your flake uses. The nixos-starter-configs standard template has two lines that do this:
That actually adds all of your flake inputs to the system flake registry. So for example if in addition to your
nixpkgs
input you also have an input you namednixpkgs-unstable
then can also reference that with stuff likenix shell
. For example:Yeah that's what I am using currently but I was told that by default it follows whatever nixpkgs version is in flake.nix and doing the registry thing is an extra step to make it more systematic. For now I will keep using that.