2024-03-16 12:03:33 +01:00
|
|
|
{ pkgs, config, lib, ... }: let
|
|
|
|
cfg = config.grimmShared;
|
|
|
|
in {
|
|
|
|
config = with cfg; lib.mkIf (enable && printing) {
|
|
|
|
# Enable CUPS to print documents.
|
|
|
|
services.printing.enable = true;
|
|
|
|
services.printing.drivers = with pkgs; [ brgenml1lpr brgenml1cupswrapper ];
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
services.printing.cups-pdf.enable = true;
|
|
|
|
hardware.sane.brscan4.enable = true; # enables support for SANE scanners
|
2024-03-16 18:02:19 +01:00
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
|
|
skanpage
|
|
|
|
];
|
2024-03-16 12:03:33 +01:00
|
|
|
};
|
|
|
|
}
|