Nix Installation Guide: Difference between revisions

imported>Mic92
nix --store awesomeness
imported>Lheckemann
Line 44: Line 44:


<syntaxHighlight lang="console">
<syntaxHighlight lang="console">
$ nix-shell --store ~/my-nix -p nix bashInteractive
$ nix run --store ~/my-nix nixpkgs.nix nixpkgs.bashInteractive
</syntaxHighlight>
</syntaxHighlight>
You can make all nix commands use the alternate store by specifying it in `~/.config/nix/nix.conf` as <code>store = /home/USERNAME/my-nix</code>.


=== nix-user-chroot ===
=== nix-user-chroot ===