How to use nixos-unstable for some packages only?

I also use an overlay called “unstable” like this:

(final: prev: {
  unstable = import nixpkgs-unstable {
    system = prev.system;
  };
})

when installing packages it’s then possible to use pkgs.unstable.rustc like in your example.

7 Likes