2024-08-30 22:03:59 +08:00
|
|
|
{pkgs, ...}: {
|
|
|
|
hardware.printers = {
|
|
|
|
ensurePrinters = [
|
2024-09-02 21:15:13 +08:00
|
|
|
{
|
|
|
|
name = "HP_DeskJet_2800_series_276B08";
|
|
|
|
description = "HP DeskJet 2800 series";
|
|
|
|
location = "Local Printer";
|
|
|
|
deviceUri = "dnssd://HP%20DeskJet%202800%20series%20%5B276B08%5D._ipp._tcp.local/?uuid=5e8778d6-018e-48ec-8838-c8cf40170b95";
|
|
|
|
model = "drv:///hp/hpcups.drv/hp-Deskjet_2800_series.ppd";
|
|
|
|
ppdOptions = {
|
|
|
|
PageSize = "A4";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2024-08-30 22:03:59 +08:00
|
|
|
{
|
|
|
|
name = "DYMO_Label_Writer_5XL_on_DYMOLW5XL315c26E";
|
|
|
|
description = "DYMO LabelWriter 5XL";
|
2024-09-02 21:15:13 +08:00
|
|
|
location = "Local Printer";
|
2024-08-30 22:03:59 +08:00
|
|
|
deviceUri = "dnssd://DYMO%20Label%20Writer%205XL%20on%20DYMOLW5XL315c26E._pdl-datastream._tcp.local/";
|
2024-09-02 21:15:13 +08:00
|
|
|
model = "53hwxkc5kmnm06xvkx8f6w3dcsh7jlhg-lw5xl.ppd";
|
2024-08-30 22:03:59 +08:00
|
|
|
ppdOptions = {
|
|
|
|
DymoPrintQuality = "Graphics";
|
|
|
|
};
|
|
|
|
}
|
|
|
|
];
|
2024-09-02 21:15:13 +08:00
|
|
|
ensureDefaultPrinter = "HP_DeskJet_2800_series_276B08";
|
2024-08-30 22:03:59 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
services.avahi = {
|
|
|
|
enable = true;
|
|
|
|
nssmdns4 = true;
|
|
|
|
openFirewall = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
services.printing = {
|
|
|
|
enable = true;
|
|
|
|
drivers = [
|
2024-09-02 21:15:13 +08:00
|
|
|
pkgs.hplipWithPlugin
|
|
|
|
(pkgs.callPackage ./lw5xl.nix {})
|
2024-08-30 22:03:59 +08:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|