flocon/hosts/common/system/printing.nix

28 lines
534 B
Nix
Raw Normal View History

2024-09-24 21:47:52 +00:00
{pkgs, ...}: {
# 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
];
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
];
}