add printer with ipp
This commit is contained in:
parent
f1d0ea2cda
commit
653b503676
1 changed files with 17 additions and 1 deletions
|
|
@ -1,6 +1,22 @@
|
||||||
{
|
let
|
||||||
|
brother = "Brother_HL-L2360D";
|
||||||
|
hostName = "brn30055c566237.cloonar.multimedia";
|
||||||
|
in {
|
||||||
services.printing.enable = true;
|
services.printing.enable = true;
|
||||||
services.avahi.enable = true;
|
services.avahi.enable = true;
|
||||||
services.avahi.nssmdns = true;
|
services.avahi.nssmdns = true;
|
||||||
services.avahi.openFirewall = true;
|
services.avahi.openFirewall = true;
|
||||||
|
|
||||||
|
hardware.printers = {
|
||||||
|
ensureDefaultPrinter = brother;
|
||||||
|
ensurePrinters = [
|
||||||
|
{
|
||||||
|
name = brother;
|
||||||
|
deviceUri = "ipp://${hostName}/ipp";
|
||||||
|
model = "everywhere";
|
||||||
|
description = lib.replaceStrings [ "_" ] [ " " ] brother;
|
||||||
|
location = "Study";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue