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.
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) andnix store optimise. It's nice being able to see progress for long-running processes,nh oshandles this great with the nom output. A simple progress bar for garbage collection and optimisation with the--optimiseflag using indicatif or similar would solve this issue for me. I do think the best example of what I'm wanting would benix 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:
nh cleannix store optimise's output but is more in-line with the style ofnhis what I would propose as a solution.