Mmmmm flake templates.. 🥣
As simple as:
nix flake init -t github:cwdesroches/nix-templates#solidity
If you'd like to create a shortname for the template repository (ex: pop):
nix registry add pop github:cwdesroches/nix-templates
And now, use your templates:
nix flake init -t pop#solidity