mirror of
https://github.com/lucabrunox/nix-user-chroot.git
synced 2024-09-11 02:45:35 +03:00
281 B
281 B
Run nix as user in a lightweight chrooted container.
- Create an empty directory somewhere,
mkdir $DIR
- Run
nix-user-chroot $DIR bash
as user
You are now in a chroot where /
is owned by your user, hence you can now install nix under /nix
as user and run nix commands.