From de0b9e515f8e1b83f5df8006b9c7be1f0b047b4b Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sun, 8 Dec 2024 14:58:57 -0700 Subject: [PATCH] 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. --- nalai/etc/nixos/configuration.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/nalai/etc/nixos/configuration.nix b/nalai/etc/nixos/configuration.nix index 2e06a47..9e24ab5 100644 --- a/nalai/etc/nixos/configuration.nix +++ b/nalai/etc/nixos/configuration.nix @@ -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