From 7ecb5a1237dc111e4a845103b945e48a54c6a7ad Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 15 Jul 2024 10:30:28 -0700 Subject: [PATCH] Add a pre-defined printer for my Brother HL-L8250 Now I not only find the printer, but I can correctly send data to it, so long as it's data the printer can consume like and image and not a raw pdf. I got an error on my first attempt to print a pdf until I opened GIMP and imported it that way. --- nalai/configuration.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/nalai/configuration.nix b/nalai/configuration.nix index 03f9ade..530fae7 100644 --- a/nalai/configuration.nix +++ b/nalai/configuration.nix @@ -17,6 +17,16 @@ # Bluetooth hardware.bluetooth.enable = true; # enables support for Bluetooth hardware.bluetooth.powerOnBoot = true; # powers up the default Bluetooth controller on boot + hardware.printers = { + ensureDefaultPrinter = "Brother_HLL8250CDW"; + ensurePrinters = [{ + name = "Brother_HLL8250CDW"; + deviceUri = "ipp://192.168.1.10/ipp"; + model = "everywhere"; + description = "Brother HL-L8250CDW"; + location = "study"; + }]; + }; networking.hostName = "nalai"; # Define your hostname. # networking.wireless.enable = true; # Enables wireless support via wpa_supplicant.