2024-09-24 21:47:52 +00:00
|
|
|
{pkgs, ...}: {
|
2024-08-27 11:22:17 +00:00
|
|
|
# setup printing service
|
|
|
|
services.printing.enable = true;
|
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
2024-09-24 13:09:36 +00:00
|
|
|
services.printing.drivers = [
|
|
|
|
pkgs.gutenprint
|
|
|
|
pkgs.hplip
|
|
|
|
];
|
2024-08-27 11:22:17 +00:00
|
|
|
|
|
|
|
hardware.sane.enable = true; # enables support for SANE scanners
|
2024-09-24 13:09:36 +00:00
|
|
|
hardware.sane.extraBackends = [
|
|
|
|
pkgs.sane-airscan # generic
|
|
|
|
pkgs.hplip # HP
|
|
|
|
pkgs.epkowa # Epson
|
|
|
|
pkgs.utsushi # other printers
|
|
|
|
];
|
|
|
|
services.udev.packages = [
|
|
|
|
pkgs.sane-airscan
|
|
|
|
pkgs.utsushi
|
2024-08-27 11:22:17 +00:00
|
|
|
];
|
|
|
|
}
|