From 522163a28d63c05e2041328f5c5b0d3aa563a22e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Wed, 22 Sep 2021 22:23:45 +0100 Subject: [PATCH] ensure samsung printer --- nixos/common-hardware.nix | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) diff --git a/nixos/common-hardware.nix b/nixos/common-hardware.nix index dd9fa843..2483622e 100644 --- a/nixos/common-hardware.nix +++ b/nixos/common-hardware.nix @@ -35,13 +35,22 @@ drivers = with pkgs; [ epson-escpr samsung-unified-linux-driver ]; }; - hardware.printers.ensurePrinters = [{ - description = "Epson XP-540 via brix"; - name = "epson_xp540_via_brix"; - deviceUri = "ipp://brix:631/printers/epson_xp540"; - model = "epson-inkjet-printer-escpr/Epson-XP-540_Series-epson-escpr-en.ppd"; - ppdOptions = { PageSize = "A4"; Duplex = "DuplexNoTumble"; }; - }]; + hardware.printers.ensurePrinters = [ + { + description = "Epson XP-540 via brix"; + name = "epson_xp540_via_brix"; + deviceUri = "ipp://brix:631/printers/epson_xp540"; + model = "epson-inkjet-printer-escpr/Epson-XP-540_Series-epson-escpr-en.ppd"; + ppdOptions = { PageSize = "A4"; Duplex = "DuplexNoTumble"; }; + } + { + description = "Samsung SCX-4623 Series"; + name = "samsung-SCX-4623"; + deviceUri = "usb://Samsung/SCX-4623%20Series?serial=Z2TYBFFZC01007W&interface=1"; + model = "samsung/SCX-4623FW.ppd"; + ppdOptions = { PageSize = "A4"; Duplex = "DuplexNoTumble"; }; + } + ]; services.saned.enable = true; hardware.sane = {