User-defined Playground

Nix on Ubuntu Playground

Mรกrk Sรกgi-Kazรกr
byย  Mรกrk Sรกgi-Kazรกrย ยทย on
Linux

Experiment with the Nix package manager, a powerful tool for reproducible and isolated software environments, on Ubuntu.

Nix on Ubuntu playground: Experiment with the Nix package manager, a powerful tool for reproducible and isolated software environments, on Ubuntu.
Machines & network
1 VM ยท 4 vCPU ยท 8GiB RAM
Playground host Internet NAT MASQUERADE local (bridge) 172.16.0.0/24 gw 172.16.0.1/24eth0
VM
vCPU ยท
eth0
/
oci://ghcr.io/sagikazarmark/iximiuz-labs/playgrounds/nix-on-ubuntu:live@sha256:ea4a8639aa23106dd924f5ac9dcc43c1d9cc7f79cfd11bf04e24ed75583f19f1
About

๐ŸŽฏ Getting Started

Quick Check

Verify Nix is installed:

nix --version

Nix Shell

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

Package Management

Install Packages

# 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

Remove Packages

# Uninstall a package
nix-env -e hello

# Remove all packages from profile
nix-env -e '.*'

๐Ÿ“š Learn More

Happy learning! ๐Ÿš€

Every playground includes
Learn more about playgrounds
Start
Settings