Package Management

Install development tools using Nix packages. Packages are installed at the host level and shared across workspaces.

Quick start

Get started with package management.

kl pkg add                   # Interactive mode
kl pkg add nodejs python     # Add multiple packages
kl pkg list                  # List installed

Commands

Search packages

Search the Nix package registry for available packages.

kl pkg search nodejs
Add packages

Add packages to your workspace.

kl pkg add                   # Interactive with fuzzy search
kl pkg add git vim curl      # Add by name
kl pkg add nodejs --exact    # Pin to exact version
Install with version control

Specify exact versions, channels, or commits for reproducibility.

kl pkg install nodejs --version 20.0.0
kl pkg install python --channel nixos-24.05
kl pkg install curl --commit abc123def
List installed

Shows packages with their source and status.

kl pkg list
Remove package

Removes from your workspace config only.

kl pkg uninstall vim