26 lines
650 B
Nix
26 lines
650 B
Nix
{ pkgs, lib, config, ... }: lib.mkIf config.bchmnn.printing.enable {
|
|
services.printing = {
|
|
enable = true;
|
|
drivers = [
|
|
pkgs.mfcl3750cdwcupswrapper
|
|
];
|
|
};
|
|
|
|
services.avahi = {
|
|
enable = true;
|
|
nssmdns = true;
|
|
openFirewall = true;
|
|
};
|
|
|
|
hardware.printers = {
|
|
ensurePrinters = [
|
|
{
|
|
name = "Brother-MFC-L3750CDW-series";
|
|
location = "Home";
|
|
deviceUri = "dnssd://Brother%20MFC-L3750CDW%20series._ipp._tcp.local/?uuid=e3248000-80ce-11db-8000-b4220094c09b";
|
|
model = "brother_mfcl3750cdw_printer_en.ppd";
|
|
}
|
|
];
|
|
ensureDefaultPrinter = "Brother-MFC-L3750CDW-series";
|
|
};
|
|
}
|