Skip to content

Nix

Installer

Resources

  • MyNixOS - Build and share reproducible software environments with Nix and NixOS.
  • Zero to Nix - An unofficial, opinionated, gentle introduction to Nix.
  • NixOS & Flakes Book
  • nix.dev - Official documentation for the Nix ecosystem.

Avoid macOS updates to destroy nix

$HOME/.zshrc

bash
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
  source '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi

Try out a package

bash
nix-shell -p kubeshark