Pinning packages in modules using flakes

You didn’t add it as a module arg at the top of your file, and you also need to pass it in via specialArgs argument to nixosSystem.