Try to make printer not hold up rebuild

I'm not sure the printer still works, I'm on another network, but at
least it doesn't make the rebuild process hang.
This commit is contained in:
Eli Ribble 2024-12-08 14:58:57 -07:00
parent 227371359f
commit de0b9e515f
1 changed files with 8 additions and 6 deletions

View File

@ -39,16 +39,16 @@
ensureDefaultPrinter = "HL-L8250CDW";
ensurePrinters = [{
name = "HL-L8250CDW";
deviceUri = "ipp://192.168.88.10/ipp";
model = "everywhere";
deviceUri = "ipps://192.168.88.10/ipp/print";
model = "Brother_HL-L8250CDN.ppd";
description = "Brother HL-L8250CDW";
location = "kids desks";
ppdOptions = {
PageSize = "Letter";
Duplex = "DuplexNoTumble"; # Double-sided along the long edge
Resolution = "600dpi";
PrintQuality = "4";
PwgRasterDocumentType = "Rgb_8";
Duplex = "DuplexNoTumble"; # Double-sided along the long edge
Resolution = "600dpi";
PrintQuality = "4";
PwgRasterDocumentType = "Rgb_8";
};
}];
};
@ -132,6 +132,8 @@
# and 'msexpand USA/brphl8250cdn.pp_' to expand it. Those tools are available in the _7zz and mscompress
# modules, respectively: 'nix-shell -p _7zz mscompress'.
(pkgs.writeTextDir "share/cups/model/Brother_HL-L8250CDN.ppd" (builtins.readFile ./Brother_HL-L8250CDN.ppd))
# See https://github.com/NixOS/nixpkgs/issues/78535#issuecomment-2200268221
# for an attempt at making this work when away from the printer
];
# Enable rpcbind for nfs mounting