Hi everyone,
I’ve packaged my first nixos module, which is dsnet : Add dsnet module and package by naggie · Pull Request #408421 · NixOS/nixpkgs · GitHub
I’d appreciate any tips or advice, code review etc. I’ve tried to keep this idiomatic nix, taking some clues from the dnsmasq module.
dsnet is a wireguard VPN server management tool that handles IP allocation, key management, config file generation etc. The way it is traditionally configured is via its command line interface, and also by editing the configuration file. As the configuration file is more of a database (dsnet writes to it) I have provided a system (upstreamed) to patch this “database” with nix configuration.
That way it is possible to use dsnet entirely declaratively, or imperatively as you see fit.
Thanks!
Callan