News for hackers. Stuff that matters.
Re:Avoiding Complexity with Systemd by drran on Sunday June 27, 2021 @09:07AM (#27651271)
It looks like NixWay of doing NixThings to solve NixProblems.

Why I need NixModules in the first place? ELI5, please.

Re:Avoiding Complexity with Systemd by leotaku on Sunday June 27, 2021 @10:31AM (#27651859)
It's basically just a nice way of composing the different parts of your system.

E.g. you could write a NixOS module to manage your web app. You declaratively configure that you want to run Nginx, Postgres, etc. open some ports, connect to your VPN and basically everything else you might want. There are a lot of existing modules, so in most cases you have to write very little code yourself. If you want to scale your system to run on multiple systems or containers, you can do that with relative ease.

You also have a singular source of truth for all of your information, down to your application binaries. Your configuration says you are using Postgres version X.Y.Z with compilation options A, B and C, so that's exactly what is running on your systems.

Re:Avoiding Complexity with Systemd by diragon on Sunday June 27, 2021 @03:14PM (#27654353)
It's an academically more impressive version of Ansible that's deeply intertwined with the distro's package manager.