Skip to content

Instantly share code, notes, and snippets.

@hanshoglund
Created June 21, 2017 12:40
Show Gist options
  • Save hanshoglund/223c334689a1059576337b1bfd9260f8 to your computer and use it in GitHub Desktop.
Save hanshoglund/223c334689a1059576337b1bfd9260f8 to your computer and use it in GitHub Desktop.
# On host machine (e.g. strats1)
cd $HOME
mkdir $FAKEUSER
# The entire env goes in this dir
# Junest env $HOME <-> real $HOME/$FAKEUER
# Junest env / <-> real $HOME/$FAKEUSER/.junest
cd $HOME/$FAKEUSER
# Clone strats, junest and hans-conf repos to $HOME/$FAKEUSER
# Stable example:
# https://github.com/fsquillace/junest, 9cd13c88f6ea7bce144962d97f4f850e5fd5ea07
# h2/etc, 41b0ccbbfb14211145800bd7673a8a452520f434
# strats, any revision
# Enter junest env with fake root
# PATH=$PATH:$HOME/$FAKEUSER/junest/bin junest -f
HOME=$(pwd) PATH=$PATH:$(pwd)/junest/bin junest -f
# Install tar and nix (only needed first time)
## TODO stable nix? ni
## nix-env (Nix) 1.11.10
pacman -S tar
mkdir -p /etc/nix
echo "build-users-group =" > /etc/nix/nix.conf
curl https://nixos.org/nix/install | sh
# Bring nix-* into env (can go into profile for the junest env)
. $HOME/.nix-profile/etc/profile.d/nix.sh
# Install nix packages (first time only)
# TODO stable? by default these all come from nixpkgs-unstable
# My initial setup was from https://github.com/NixOS/nixpkgs-channels/commit/ec9a23332f06eca2996b15dfd83abfd54a27437a (via nixpkgs-unstable)
nix-env -iA nixpkgs.file nixpkgs.which nixpkgs.ansible nixpkgs.stack nixpkgs.python nixpkgs.man nixpkgs.neovim
# Start neovim :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment