Thanks for this package, unfortunately it is not secure since the secretKey option will be written in the public folder /nix, hence any user can read this file. Nix deals with secrets by providing options like secretKeyPath instead to provide a path (outside of the nix store) containing the secrets, and files can either be manually created or via tools like sops-nix.