You could also write a test for your module and add that to checks - then nix flake check would also run your test, and as part of the test run the module would need to be evaluated.
I’d recommend using a nested flake for that, so you don’t need to include nixpkgs in your inputs, assuming you only provide nixosModules.