2021-12-05 16:07:20 +04:00
|
|
|
{ pkgs, config, inputs, ... }:
|
2021-06-09 00:07:38 +04:00
|
|
|
let
|
|
|
|
brother_printer = pkgs.linkFarm "Brother_HL-3170CDW_series" [{
|
|
|
|
name = "share/cups/model/hl3170cdw.ppd";
|
2021-12-05 16:07:20 +04:00
|
|
|
path = "${inputs.brother-hl-3170cdw-driver}/Brother_HL-3170CDW_series.ppd";
|
2021-06-09 00:07:38 +04:00
|
|
|
}];
|
|
|
|
in {
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [
|
|
|
|
brother_printer
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
hardware.printers = {
|
|
|
|
ensureDefaultPrinter = "Brother_HL-3170CDW_series";
|
|
|
|
ensurePrinters = [{
|
|
|
|
name = "Brother_HL-3170CDW_series";
|
|
|
|
deviceUri = "usb://Brother/HL-3170CDW%20series?serial=E71798K6J706416";
|
|
|
|
model = "hl3170cdw.ppd";
|
|
|
|
}];
|
|
|
|
};
|
|
|
|
|
|
|
|
programs.system-config-printer.enable = true;
|
|
|
|
|
|
|
|
hardware.sane.enable = true;
|
|
|
|
services.saned.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = [ pkgs.gnome3.simple-scan ];
|
|
|
|
}
|