does printing work yet?

This commit is contained in:
Peder Bergebakken Sundt 2023-11-10 22:54:50 +01:00
parent 370216d15c
commit 841f455767
1 changed files with 8 additions and 3 deletions

View File

@ -2,16 +2,21 @@
{ {
# https://nixos.wiki/wiki/Printing # https://nixos.wiki/wiki/Printing
services.printing.enable = true; services.printing.enable = true;
services.printing.drivers = with pkgs; [ foo2zjs cups-filters ]; #services.printing.drivers = with pkgs; [ foo2zjs foomatic-filters cups-filters ];
#services.printing.drivers = with pkgs; [ foo2zjs hplip foomatic-filters cups-filters ];
services.printing.drivers = with pkgs; [ foo2zjs hplipWithPlugin foomatic-filters cups-filters ];
#services.printing.drivers = with pkgs; [ hplipWithPlugin cups-filters ]; #services.printing.drivers = with pkgs; [ hplipWithPlugin cups-filters ];
#hardware.printers.ensureDefaultPrinter = lib.mkDefault "HP_LaserJet_P1005"; #hardware.printers.ensureDefaultPrinter = lib.mkDefault "HP_LaserJet_P1005";
hardware.printers.ensurePrinters = lib.singleton { hardware.printers.ensurePrinters = lib.singleton {
name = "HP_LaserJet_P1005"; name = "HP_LaserJet_P1005";
deviceUri = "usb://HP/LaserJet%20P1005?serial=BC0CAEQ"; # `lpstat -s` deviceUri = "hp:/usb/HP_LaserJet_P1005?serial=BC0CAEQ"; # `lpstat -s` # hplip
model = "HP-LaserJet_P1005.ppd.gz"; # `lpinfo -m` #deviceUri = "usb://HP/LaserJet%20P1005?serial=BC0CAEQ"; # `lpstat -s` # foo2zjs
model = "HP-LaserJet_P1005.ppd.gz"; # `lpinfo -m` # foo2zjs
#location = ""; #location = "";
description = "Laser printer"; description = "Laser printer";
ppdOptions.PageSize = "A4"; ppdOptions.PageSize = "A4";
}; };
services.printing.logLevel = "debug";
} }