News for hackers. Stuff that matters.
Re:Working with Systemd Timers by freedomben on Friday March 14, 2025 @02:00PM (#43365301)
I like so much about Nix and the Nix philosophy, but I'm a bit stuck on the perceived ugliness of the Nix language. It just feels so ... icky to me. I don't typically feel that way about languages. Even Erlang (while being bizarre) didn't/doesn't bother me that much.

Does anybody else have this problem? How do you get over it? (it seems like such a ridiculous reason to avoid picking up an otherwise good tech)

Re:Working with Systemd Timers by bitwize on Friday March 14, 2025 @03:10PM (#43366110)
You may wish to give Guix a try. Nix philosophy, but the language is Scheme.
Re:Working with Systemd Timers by tombert on Friday March 14, 2025 @10:30PM (#43369397)
I think at this point it's a quasi Stockholm Syndrome for me, because I've grown to genuinely kind of like it.

I started making my own packages for Nixpkgs, and I have made dozens (maybe hundreds) of flakes, so I'm just kind of used to the language now. It's an ugly language, but once you write a lot of it, you get used to its quirks.

And there are some niceties, like being able to define a variable and use that variable to access and define fields, kind of like JavaScript:

   {
      blah = {
        ${myVar} = "something";
      };
    }
It's kind of fun to do that, because you can use something like flake-utils that lets you loop through all the platforms that Nix supports and reuse your structures.

Otherwise it's just kind of an awkward functional language. You get used to it.