Nix User chroot

Edit Package nix-user-chroot

To install Nix in a "non-standard" place, just:
$ mkdir -m 0755 ~/.nix
$ nix-user-chroot ~/.nix bash -c "curl -L https://nixos.org/nix/install | bash"

And to use it, issue:
$ nix-user-chroot ~/.nix bash -l

You're going to be in a user chroot where / is owned by your user, hence also /nix is owned by your user. Everything else is bind mounted from the real root.

The nix config is not in /etc/nix but in /nix/etc/nix, so that you can modify it. This is done with the NIX_CONF_DIR, which you can override at any time.

Source Files
Filename Size Changed
_service 0000000830 830 Bytes
cargo_config 0000000100 100 Bytes
nix-user-chroot-1.2.2+53.tar.zst 0000008772 8.57 KB
nix-user-chroot.changes 0000000207 207 Bytes
nix-user-chroot.obsinfo 0000000107 107 Bytes
nix-user-chroot.spec 0000001523 1.49 KB
vendor.tar.zst 0000660178 645 KB
Comments 1

openSUSE Build Service is sponsored by