-
-
Save eNV25/fccd7ce68236944fba67335e9cbb160d to your computer and use it in GitHub Desktop.
Script to enable `nix profile` with an unprivileged chroot store using `nix shell`. You need nix (from system or static build from hydra) outside the profile and nixpkgs#nix installed inside the profile.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #! /usr/bin/env nix | |
| #! nix shell --expr ``{}`` --command bash --rcfile | |
| . ~/.bashrc | |
| . ~/.nix-profile/etc/profile.d/nix.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment