2023-06-30 12:26:00 +02:00
|
|
|
{ lib, pkgs, ... }:
|
|
|
|
{
|
2024-11-02 18:42:16 +01:00
|
|
|
imports = [
|
|
|
|
./common-share.nix
|
|
|
|
];
|
|
|
|
|
2023-06-30 12:26:00 +02:00
|
|
|
# https://nixos.wiki/wiki/Printing
|
|
|
|
services.printing.enable = true;
|
2023-11-10 22:54:50 +01:00
|
|
|
#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 ];
|
2023-06-30 12:26:00 +02:00
|
|
|
#services.printing.drivers = with pkgs; [ hplipWithPlugin cups-filters ];
|
|
|
|
|
|
|
|
#hardware.printers.ensureDefaultPrinter = lib.mkDefault "HP_LaserJet_P1005";
|
|
|
|
hardware.printers.ensurePrinters = lib.singleton {
|
|
|
|
name = "HP_LaserJet_P1005";
|
2023-11-10 22:54:50 +01:00
|
|
|
deviceUri = "hp:/usb/HP_LaserJet_P1005?serial=BC0CAEQ"; # `lpstat -s` # hplip
|
|
|
|
#deviceUri = "usb://HP/LaserJet%20P1005?serial=BC0CAEQ"; # `lpstat -s` # foo2zjs
|
|
|
|
model = "HP-LaserJet_P1005.ppd.gz"; # `lpinfo -m` # foo2zjs
|
2023-06-30 12:26:00 +02:00
|
|
|
#location = "";
|
|
|
|
description = "Laser printer";
|
|
|
|
ppdOptions.PageSize = "A4";
|
|
|
|
};
|
2023-11-10 22:54:50 +01:00
|
|
|
|
|
|
|
services.printing.logLevel = "debug";
|
2023-06-30 12:26:00 +02:00
|
|
|
}
|