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;
|
2024-01-31 17:04:50 +01:00
|
|
|
nssmdns4 = true;
|
2023-11-28 23:24:43 +01:00
|
|
|
openFirewall = true;
|
|
|
|
};
|
2023-12-28 12:39:55 +01:00
|
|
|
services.printing.cups-pdf.enable = true;
|
2023-11-28 23:24:43 +01:00
|
|
|
hardware.sane.brscan4.enable = true; # enables support for SANE scanners
|
|
|
|
}
|