Home Nix
Post
Cancel

Nix

Nix is a package manager for Linux. It is similar to apt, yum, and other package managers.

pros

  • packages are up to date
  • very fast

cons

  • unintuitive command names
  • no full arm64 support (yet)

Installation

1
2
3
4
curl -L https://nixos.org/nix/install | sh
. ./home/$USER/.nix-profile/etc/profile.d/nix.sh
echo "export NIXPKGS_ALLOW_UNFREE=1" >> ~/.zshrc
export NIXPKGS_ALLOW_UNFREE=1

search nix packages

  • list installed packages nix-env -q
  • install packages nix-env -iA nixpkgs.packagename
  • erase packages nix-env -e packagename
  • update all packages nix-env -u
This post is licensed under CC BY 4.0 by the author.