mirror of
https://github.com/lucabrunox/nix-user-chroot.git
synced 2024-09-17 13:49:17 +03:00
Run nix in a lightweight chroot container
d5a9a63e93
Add some additional explanations |
||
---|---|---|
main.c | ||
Makefile | ||
README.md |
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.