I’m pleased to announce the first stable release of my program, hdn.
hdn is a small utility that provides a poetry/cargo-like interface for quickly adding and removing your home-manager packages. It’s mainly geared towards people like me who use home-manager only to install packages, and not manage dotfiles.
Here are screenshots of it in action:
(1) Adding packages: multiple packages can be specified.
I’ve been using it myself these past few weeks, and it’s been quite convenient! Hopefully it’s useful to you as well.
Let me know what you think, and in particular, please let me know if the binary releases are broken. Since I’m on macOS, I haven’t been able to test the Linux binaries.
To be honest, I’m not very familiar with the Nix expression language, so I’m not certain I understand what this is doing. By the looks of it, it’s editing the attribute, and you use anew (nifty tool, thanks for the link btw) to skip duplicates. Seems like a good idea. But, if I understand correctly, that doesn’t handle removing packages, or rolling back to the original version if home-manager fails.
I wasn’t sure myself, so I looked it up, and there have been some posts asking that same question:
I used to use home-manager edit, and I’m grateful that it exists. But, after a while of using it, I felt like there were too many steps involved just to install a package:
run home-manager edit
in your editor, navigate to the end of the home.packages attribute
write your packages
save and quit out of your editor
run home-manager switch
inspect the output, and undo your changes if you mistyped something
I had the exact same idea as hdn in my notebook written down: to avoid the long editing loop.
I love the sound of hdn so far – very excited to try it out.
How long till it’s in nixpkgs so I can add it via home-manager?