This commit is contained in:
2023-09-07 09:54:15 +02:00
parent 3566c4acb8
commit f96d446124

View File

@@ -1,29 +1,28 @@
{ lib, pkgs, ... }:
let
brother = "Brother_HL-L2360D";
hostName = "brn30055c566237.cloonar.multimedia";
in {
services.printing.enable = true;
services.printing.drivers = [ pkgs.brlaser ];
# services.printing.drivers = [ pkgs.brlaser ];
services.avahi.enable = true;
services.avahi.nssmdns = true;
services.avahi.openFirewall = true;
# hardware.printers = {
# ensureDefaultPrinter = brother;
# ensurePrinters = [
hardware.printers = {
ensureDefaultPrinter = "Cloonar";
ensurePrinters = [
# {
# name = "Office";
# deviceUri = "socket://mercury.epicenter.intra";
# description = lib.replaceStrings [ "_" ] [ " " ] brother;
# location = "Office";
# }
# {
# name = "Cloonar";
# deviceUri = "socket://mercury.epicenter.intra";
# description = lib.replaceStrings [ "_" ] [ " " ] brother;
# location = "Office";
# }
# ];
# };
{
name = "Cloonar";
deviceUri = "ipp://brn30055c566237.cloonar.multimedia/ipp";
model = "everywhere";
description = "Brother HL-L2360D";
location = "Office";
}
];
};
}