3 ms·
The scheme syntax gets a while to get used to if you are not familiar with it, and in the end having a real programming language is quite awesome, you can do lo
by linschn 8mo ago
The scheme syntax gets a while to get used to if you are not familiar with it, and in the end having a real programming language is quite awesome, you can do lots of fun stuff like programmatically create a file or dir for every user of a certain group, etc.
Take a look at this
https://guix-hosting.com/docs/tuto/getting-started.html https://guix-hosting.com/docs/tuto/getting-started.html
To see how one can use macros to redefine the syntax to get an imperative-like syntax for defining services.
Disclaimer: i run guix-hosting.com
- c0balt 8mo ago> programmatically create a file or dir for every user of a certain group To be fair here, NixOS module system also makes this a breeze. Whether via `systemd.tmpfiles` or via generated scripts. It might be nicer to have some more DSL capabilities in nix though.