- Simple ready to use boilerplate in order to start making flakes of packages and modules.
- Easy to understand and follow.
- Well documented with comments.
This boilerplate will eliminate your worries about packaging your software for NixOs. Leave the task of writing flake to this and focus on your software.
This boilerplate shows an example where it provides a package named "pkg_name" and its corresponding module named "module_name". The package installs a bash script to the system which can be run by the command "pkg_name".
It also provides a module called "module_name" which if added to the system provides a service called "pkg_name". Once the service is enabled and a string is provided to the option "extra_option", the service will keep printing this string along with the current time after 30 seconds.
I am still learning Nix, so I need your help and contributions to improve it. Please provide your feedback and use this boilerplate to provide documentation and showcase best practices.
Abhishek Adhikari (Github | Twitter | Website | Email)
The Creative Commons Zero v1.0 Universal.