Skip to content

Instantly share code, notes, and snippets.

@ylixir
Created June 14, 2018 21:00
Show Gist options
  • Save ylixir/481d5a0f065bc24d060bd34f9153e4fa to your computer and use it in GitHub Desktop.
Save ylixir/481d5a0f065bc24d060bd34f9153e4fa to your computer and use it in GitHub Desktop.
Updating Nix development environments #nix #nixpkg #blog

I've been slacking on my Nix learning. I finally looked up how to update dev environments (all environments actually) to minty fresh versions. Simply run the following commands:

$ sudo nix-channel --update
$ nix-env --u always

And that's it. Now you will have the newest versions of all your stuff next time you run

$ nix run -f shell.nix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment