LinuxCommandLibrary

nh-clean

removes old Nix profile generations and runs garbage collection

TLDR

Clean user profile

$ nh clean user
copy
Clean all profiles
$ nh clean all
copy
Clean with age limit
$ nh clean all --keep [30d]
copy
Dry run
$ nh clean all --dry
copy

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

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community