|
Nix 2.93.3
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
|
R""(
Note: this command's interface is based heavily around installables, which you may want to read about first (nix --help).
Start a shell providing youtube-dl from the nixpkgs flake:
Start a shell providing GNU Hello from NixOS 20.03:
Run GNU Hello:
Run multiple commands in a shell environment:
Run GNU Hello in a chroot store:
Start a shell providing GNU Hello in a chroot store:
Note that it's necessary to specify bash explicitly because your default shell (e.g. /bin/bash) generally will not exist in the chroot.
nix shell runs a command in an environment in which the $PATH variable provides the specified installables. If no command is specified, it starts the default shell of your user account specified by $SHELL.
)""