nh-clean
removes old Nix profile generations and runs garbage collection
TLDR
Clean user profile
$ nh clean user
Clean all profiles$ nh clean all
Clean with age limit$ nh clean all --keep [30d]
Dry run$ nh clean all --dry
SYNOPSIS
nh clean target [options]
DESCRIPTION
nh clean removes old Nix profile generations and runs garbage collection. Friendly wrapper around nix-collect-garbage. Part of nh (nix helper) toolkit.
PARAMETERS
user
Clean user profile.all
Clean all profiles.--keep period
Keep generations newer than period.--keep-since date
Keep generations since date.--dry
Dry run.
SEE ALSO
nh(1), nix-collect-garbage(1)
