I’m still new to NixOS, but created a working Package that uses a overlay.
I wanted to create a package that can be imported with a single import line, but be able to configure a systemd service, and that’s what I came up with: github.com/BenediktSeidl/nixos-check_mk_agent-overlay/
The Package itself is a shell script that can be further enriched by plugins which can be other shell scripts or python scripts. Until now only two plugins are implemented, but more could follow.
Is this the correct way to do it? How can the Package be improved? What best practice have I ignored? Where can I find more Information about writing Packages that are not part of the NixOS distribution?
Thanks in advanced, Benedikt