I would avoid it, if you care at all about availability and downtime. The result will probably not be great, you need to ensure the server side gets enough resources under load, and setting it up may require constant restarts if things aren’t immediately working as expected.
Nonetheless, here is a link where someone did essentially exactly that on NixOS: https://astrid.tech/2022/09/22/0/nixos-gpu-vfio/
Possible issues with and solutions for selfhosting email is still infinitely more suitable for this community than advertisements for one of the many pay-to-use email providers. That does not mean this particular one is bad, this just isn’t the place for it.