grimm-nixos-laptop/modules/printing.nix

19 lines
526 B
Nix
Raw Normal View History

2023-11-29 22:56:30 +01:00
{pkgs, ... }:
2023-11-28 23:24:43 +01:00
{
imports =
[ # Include the results of the hardware scan.
2023-11-28 23:36:44 +01:00
# <nixpkgs/nixos/modules/services/hardware/sane_extra_backends/brscan4.nix>
2023-11-28 23:24:43 +01:00
];
# Enable CUPS to print documents.
services.printing.enable = true;
services.printing.drivers = with pkgs; [ brgenml1lpr brgenml1cupswrapper ];
services.avahi = {
enable = true;
nssmdns4 = true;
2023-11-28 23:24:43 +01:00
openFirewall = true;
};
services.printing.cups-pdf.enable = true;
2023-11-28 23:24:43 +01:00
hardware.sane.brscan4.enable = true; # enables support for SANE scanners
}