Skip to content

Instantly share code, notes, and snippets.

@jisantuc
Last active June 21, 2019 13:08
Show Gist options
  • Save jisantuc/154a027a6eef8d90c6e4ed30c7519dac to your computer and use it in GitHub Desktop.
Save jisantuc/154a027a6eef8d90c6e4ed30c7519dac to your computer and use it in GitHub Desktop.
nix-env -i hello
nix-env --uninstall hello
# sandboxing
nix-shell -p hello
# time traveling
nix-env --list-generations
nix-env --switch-generation 1
# profiles for system lib isolation
nix-env --switch-profile test
fire[TAB]
nix-env --switch-profile default
fire[TAB]
# trouble in paradise
# the bug https://stackoverflow.com/questions/48959187/docker-cannot-connect-to-the-docker-daemon-at-unix-var-run-docker-sock
nix-env -i docker
docker run --rm -it hello-world
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment