Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More concise nix profile list #10098

Open
szlend opened this issue Feb 27, 2024 · 1 comment
Open

More concise nix profile list #10098

szlend opened this issue Feb 27, 2024 · 1 comment
Labels
feature Feature request or proposal new-cli Relating to the "nix" command

Comments

@szlend
Copy link
Member

szlend commented Feb 27, 2024

Is your feature request related to a problem? Please describe.

The output from nix profile list is way too noisy. You can only list a hand full of packages until your entire screen get filled up, and most of that information is not relevant to the average user.

$ nix profile list

Name:               gdb
Flake attribute:    legacyPackages.x86_64-linux.gdb
Original flake URL: flake:nixpkgs
Locked flake URL:   github:NixOS/nixpkgs/7b38b03d76ab71bdc8dc325e3f6338d984cc35ca
Store paths:        /nix/store/indzcw5wvlhx6vwk7k4iq29q15chvr3d-gdb-11.1

Name:               blender-bin
Flake attribute:    packages.x86_64-linux.default
Original flake URL: flake:blender-bin
Locked flake URL:   github:edolstra/nix-warez/91f2ffee657bf834e4475865ae336e2379282d34?dir=blender
Store paths:        /nix/store/i798sxl3j40wpdi1rgf391id1b5klw7g-blender-bin-3.1.2

Describe the solution you'd like

I would suggest we output a more concise list of packages and print the more detailed version with the --verbose flag.

Maybe something like:

gdb          11.1   nixpkgs#legacyPackages.x86_64-linux.gdb
blender-bin  3.1.2  blender-bin#packages.x86_64-linux.default
foo          N/A    /home/foo/my-flake#packages.x86_64-linux.default

Maybe even omit the installable path entirely?

gdb          11.1   flake:nixpkgs
blender-bin  3.1.2  flake:blender-bin
foo          N/A    flake:/home/foo/my-flake

Describe alternatives you've considered

There's probably a ton of different ways we could print out the list of installed packages. Just wanted to start the conversation.

Additional context

Probably something to add to nix profile has bad UX #7966

Priorities

Add 👍 to issues you find important.

@szlend szlend added the feature Feature request or proposal label Feb 27, 2024
@roberth roberth added the new-cli Relating to the "nix" command label Mar 22, 2024
@sachinchaudhary1808
Copy link

yeah fix this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal new-cli Relating to the "nix" command
Projects
None yet
Development

No branches or pull requests

3 participants