Selecting a channel with nix-shell

I’m not using channels, but I use this command every now and than

nix-shell -I nixpkgs=/var/src/nixpkgs-unstable -p git

when I want to install something from the unstable branch.
For that I have to clone the repository in /var/src/nixpkgs-unstable.

1 Like