I am trying to get a Brother QL-820NWB label maker to work with Nixos. I was able to get the printer installed with the following settings in my configuration.nix
services.printing = {
enable = true;
logLevel = "debug";
drivers = [
pkgs.brlaser
pkgs.brgenml1lpr
pkgs.brgenml1cupswrapper
pkgs.ptouch-driver
];
};
I then imperatively installed it through the CUPS web portal. I can see the printer, and I can send jobs too it, however, any job I send results in an error on the printer screen “Check the print data and try again”. And " “Invalid values for page margins: Bottom: 8; Top: 8” in the job log.
To resolve the page margin issue, I tried adjusting the sizes in the ppd file that came with the driver, however, no matter what value I put in for HWMargin or DefaultImageableArea, it results in that value being invalid.