Verify Nix is installed:
nix --version
Start experimenting with Nix by creating a temporary shell with packages:
# Start a shell with Python and Git
nix-shell -p python3 git
# Check what's available in the shell
python3 --version
git --version
# Exit the shell
exit
# Install packages to user profile
nix-env -iA nixpkgs.hello
nix-env -iA nixpkgs.git
nix-env -iA nixpkgs.nodejs
# List installed packages
nix-env -q
# Search for packages
nix-env -qaP | grep python
# Uninstall a package
nix-env -e hello
# Remove all packages from profile
nix-env -e '.*'
Happy learning! 🚀