Hacker News new | ask | show | jobs
by Cyph0n 18 days ago
I define all units in Nix because:

a) It is way nicer and you get decent validation at build time

b) A LLM can port units over if the need arises; it’s a very light abstraction around systemd syntax

c) I personally don’t see how I would ever move to another distro :)

1 comments

b) Or you could take the compiled units from /etc/systemd and copy them wherever
I believe that probably won’t work unfortunately; the generated unit files have a bunch of hardcoded Nix store paths.
Yes, but I believe there is a symlink from /etc to the Nix store, so systemd can find them.