Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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 :)



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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: