this post was submitted on 02 May 2024
13 points (100.0% liked)

Nix / NixOS

1465 readers
2 users here now

Main links

Videos

founded 1 year ago
MODERATORS
 

Yes I know that there are workarounds for them to set to use the flake inputs but still.. I have set nixpkgs version to 23.11 stable release and that's good, but if I try to use nix shell, nix profile or even nix-env, they all seem to use the latest master/unstable branch to install the packages by default.

Just want to know why aren't they just default to use whatever is defined in flake.nix file? will it be implemented to use it by default in the near future?

Reason as to why I am asking -> This is what I am using to match nix shell and flake inputs, but as you can see they are just workarounds, plus seem to cause more errors and whatnot, plus by ideology one shouldn't need to specially define it to use some version when everything is already defined.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 3 months ago

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.