Hacker News new | ask | show | jobs
by viraptor 605 days ago
Sometimes you just need to put in some work and understand what you're doing. The author needed to search for "adb" in the docs, not the whole attribute path. With the errors, they could debug the issue like they would on any other system.

But that search is for packages themselves and is correct - that's how you install it. It's not going to tell you about the configuration just like it doesn't for nginx, postgresql, or many other packages. Sometimes you "have to be this high to ride", or use a simpler system - but that comes with its own issues.

(Although in this very specific example it could just to make life easier - I'll send a PR next week unless someone does it first)

2 comments

Why is this extra completion acceptable? On Debian I install the package adb and get the udev rules with it. I just need to connect a device and run adb commands.
Because nixos manages your system and nixpkgs only contains packages. Packages cannot do anything outside their installed location, so can't touch udev or groups to make the changes. There will be other apps split in the same way.

The benefit is that just adding some package will never break your own configuration.

For the same reason that people get used to quirks on Debian (or any other distro really) that then eventually get fixed.

Nobody's perfect, you live and you learn it. I use Hannah Montanix btw

https://youtube.com/watch?v=2DQla5j26Qc

nixos is open source, I'm sure they'd welcome your proposed changes! they accept patches on GitHub.
Please, see a sibling.