flocon/system/hardware/printing.nix

29 lines
524 B
Nix
Raw Permalink Normal View History

2024-09-24 21:47:52 +00:00
{pkgs, ...}: {
2024-09-25 07:02:43 +00:00
services = {
# setup printing service
printing.enable = true;
2024-09-25 07:02:43 +00:00
avahi = {
enable = true;
nssmdns4 = true;
openFirewall = true;
};
2024-09-25 07:02:43 +00:00
printing.drivers = [
pkgs.gutenprint
pkgs.hplip
];
udev.packages = [
pkgs.sane-airscan
pkgs.utsushi
];
};
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.utsushi # other printers
];
}