nixos-config/profiles/workspace/print-scan/default.nix

31 lines
773 B
Nix
Raw Normal View History

{ 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";
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;
2022-10-10 17:28:36 +04:00
environment.systemPackages = [ pkgs.gnome.simple-scan ];
2021-06-09 00:07:38 +04:00
}