A Disappointing Start With Nix

I’ve been studying NixOS for a month or so now as I work on moving my system over to it. The documentation, blog posts, and videos all make it look too good to believe. You can seamlessly define eeeverything about your system. I thought there has to be more friction than they let on. I’m sorry to say so far, I’m right.

I went to install mlocate and found it wasn’t working because the mlocate group didn’t exist. I found a forum post that explains that the mlocate package doesn’t set up the mlocate group. To get that group you need to enable the locate service option. My first issue here is that I had to find out about the locate service from a forum post. If you search for an “mlocate” option at search.nixos.org you will get nothing back.

My second issue comes from actually installing the service. The search results don’t mention a REQUIRED setting for the locate service. You have to set services.locate.locate to a locate packge. Either mlocate or plocate. How am I expected to find this information without this forum post?

Lastly, the locate service “helpfully” installs mlocate for you when you specify it in services.locate.locate. This means that there’s no point in having mlocate in my array of system packages. When I go back in the future to see if mlocate is installed it won’t be where I expect it to be. This makes my config feel unorganized.

I understand that t

Writings about my side projects. Mostly pertaining to Linux, programming, and electronics.


Posted: Nov 27, 2023
Tags: nixos linux