grimm-nixos-laptop/modules/printing.nix

19 lines
493 B
Nix
Raw Normal View History

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