logoalt Hacker News

Cyph0nlast Tuesday at 6:50 PM1 replyview on HN

No. Is that not readable to you lol? I think anyone with even a passing familiarity with systemd would understand what that chunk of Nix is doing.

Compare it to the alternative of using plain systemd (including command(s) required to enable units).

Also, consider what build-time validation you get prior to starting the unit/timer. Hint: zero.


Replies

okanatlast Tuesday at 10:22 PM

It's significantly uglier and it also skips the helpful headers / sections in the systemd INI files. `[Unit]` and `[Service]` and `[Timer]` represent different layers of execution. Many Nix people got used to the horrible syntax of Nix, I guess? I still find Bitbake significantly more palatable than Nix.

I do appreciate build-time checking but I think this can be solved at systemd side as a separate tool just as effectively.

show 1 reply