Been doing something similar with a Samsung printer and CUPS for years, it’s great
Found this helpful for generating some of the config files: https://github.com/tjfontaine/airprint-generate
Found this helpful for generating some of the config files: https://github.com/tjfontaine/airprint-generate