Integrating this would require the addition of a profile argument, as it's not guaranteed that ~/.nix-profile points to the profile you're interested in.
I'd be happy to write a PR, but I'm uncertain if this is desirable at all? Maybe you consider it feature creep?
Additionally, the reliance on two currently unstable nix commands is probably not great. An alternative would be to use nvd instead, which would also produce nicer output, but that could be considered bloat, as it adds python3 as a dependency.
As this is not intending to be compatible with
nix profile list
(and rightfully so), maybe it could replace it instead?This is based on an experiment I did today, and I quite like the result:
After running
nix run .#profile.switch
, you can easily see which packages are installed:And, you can also see a history after adding and removing packages:
Integrating this would require the addition of a
profile
argument, as it's not guaranteed that~/.nix-profile
points to the profile you're interested in.I'd be happy to write a PR, but I'm uncertain if this is desirable at all? Maybe you consider it feature creep?
Additionally, the reliance on two currently unstable nix commands is probably not great. An alternative would be to use nvd instead, which would also produce nicer output, but that could be considered bloat, as it adds python3 as a dependency.
Let me know what you think.