From f96d446124fcde7e334da4676c2347c2c513c86a Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Thu, 7 Sep 2023 09:54:15 +0200 Subject: [PATCH] printer --- hosts/nb-01.cloonar.com/modules/printer.nix | 39 ++++++++++----------- 1 file changed, 19 insertions(+), 20 deletions(-) diff --git a/hosts/nb-01.cloonar.com/modules/printer.nix b/hosts/nb-01.cloonar.com/modules/printer.nix index a89dbd6..be4cd85 100644 --- a/hosts/nb-01.cloonar.com/modules/printer.nix +++ b/hosts/nb-01.cloonar.com/modules/printer.nix @@ -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 = [ - # { - # 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"; - # } - # ]; - # }; + hardware.printers = { + ensureDefaultPrinter = "Cloonar"; + ensurePrinters = [ + # { + # name = "Office"; + # 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"; + } + ]; + }; }