Skip to content

Instantly share code, notes, and snippets.

@ldoguin
Last active January 5, 2021 16:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ldoguin/e70a8c42652cfb435811e88d81330515 to your computer and use it in GitHub Desktop.
Save ldoguin/e70a8c42652cfb435811e88d81330515 to your computer and use it in GitHub Desktop.
wget -O nix-user-chroot https://github.com/nix-community/nix-user-chroot/releases/download/1.0.3/nix-user-chroot-bin-1.0.3-x86_64-unknown-linux-musl
chmod +x nix-user-chroot
mkdir -m 0755 ~/.nix
./nix-user-chroot ~/.nix bash -c "curl -L https://nixos.org/nix/install | bash"
./nix-user-chroot ~/.nix bash
. /home/bas/.nix-profile/etc/profile.d/nix.sh
nix --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment