Convert existing module to flake

I wrote a minecraft configuration module for my server

I’m wondering whether I can adjust it so that when I want to use it I can use it as flake input and configure with syntax like

nixcraft.servers = (a attribute set)