Commit ca7bfc19bdaa

Vincent Demeester <vincent@sbr.pm>
2026-03-23 15:43:43
feat(kyushu): persist Canon MX530 printer config
Added Gutenprint-based printer as default, bypassing driverless/IPP auto-config which defaulted to Photographic media type and caused documents to print tiny on A4 paper.
1 parent 361861d
Changed files (1)
systems
systems/kyushu/extra.nix
@@ -92,6 +92,29 @@ in
     };
   };
 
+  # Canon MX530 printer via Gutenprint driver (driverless/IPP auto-config
+  # defaults to Photographic media type, causing documents to print tiny)
+  hardware.printers = {
+    ensurePrinters = [
+      {
+        name = "Canon_MX530_Gutenprint";
+        description = "Canon MX530 series (Gutenprint)";
+        location = "Home";
+        deviceUri = "ipp://192.168.1.16:631/ipp/print";
+        model = "gutenprint.${lib.versions.majorMinor (lib.getVersion pkgs.gutenprint)}://bjc-MX530-series/expert";
+        ppdOptions = {
+          PageSize = "A4";
+          MediaType = "Plain";
+          InputSlot = "Front";
+          ColorModel = "RGB";
+          Duplex = "None";
+          StpQuality = "Standard";
+        };
+      }
+    ];
+    ensureDefaultPrinter = "Canon_MX530_Gutenprint";
+  };
+
   hardware.keyboard.qmk.enable = true;
 
   services.udev.packages = [ pkgs.sane-airscan ];