So this is slightly off-topic, but I’m hoping it can help you.
I have a Brother printer too, and it turns out that it supports “IPP Everywhere” which was completely new to me.
So this is the only config I use to get mine working:
hardware =
let
brother = "Brother_HL-3170CDW_NixOS";
hostName = "printer.home.hoeg.com";
in
{
printers = {
ensureDefaultPrinter = brother;
ensurePrinters = [
{
name = brother;
deviceUri = "ipp://${hostName}/ipp";
model = "everywhere";
description = lib.replaceStrings [ "_" ] [ " " ] brother;
location = "Study";
}
];
};
};
No fiddling with strange wrappers or drivers - IPP Everywhere just works.