Skip to content

Feature Request: Feedback for Clean Command #602

@4jamesccraven

Description

@4jamesccraven

Perhaps feedback is the wrong word here, but I'd really like to see some type of output for the progress of nh clean. The UI for cleaning on vanilla Nix has always been a bit rough IMO, and nh improves on it quite a bit, but seeing the program hang with no output until finally just printing out the size of the deletion is not ideal for me.

One thing that really drew me to flakes early on, and nix3 by extension, was the output of nixos-rebuild (with --flake) and nix store optimise. It's nice being able to see progress for long-running processes, nh os handles this great with the nom output. A simple progress bar for garbage collection and optimisation with the --optimise flag using indicatif or similar would solve this issue for me. I do think the best example of what I'm wanting would be nix store optimise's output (besides the fact that the line is immediately overwritten when that command exits, but I digress).

On a final note, this isn't just cosmetic, on some setups (namely in WSL for my use case) cleaning takes an extremely long time and any feedback or progress would be really nice; as it stands now it's hard to tell if the process is hung, or how far along it is, etc.

Tl;DR:

  • Please add a progress bar of some kind to both the GC and optimise step of nh clean
  • Something that functions similar to nix store optimise's output but is more in-line with the style of nh is what I would propose as a solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestRequest a feature from the developers.needs discussionFurther discussion is needed. No action until discussion is finalized.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions