From 52d999c12c1d1fee89a5ccdb57d86e7c8000cbf1 Mon Sep 17 00:00:00 2001 From: revol-xut Date: Sat, 5 Mar 2022 16:14:16 +0100 Subject: [PATCH] add avahi for printing --- modules/printing.nix | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/modules/printing.nix b/modules/printing.nix index 4d7085f..64d3a08 100644 --- a/modules/printing.nix +++ b/modules/printing.nix @@ -2,13 +2,18 @@ { # Enable CUPS to print documents. - services.printing.enable = true; - # services.printing.drivers = [ - # pkgs.gutenprint - # ]; - + services= { + printing.enable = true; + printing.drivers = with pkgs; [ + gutenprint + gutenprintBin + hplip + hplipWithPlugin + ]; + avahi.enable = true; + }; # set up Heiko - # hardware.printers.ensurePrinters = [ + #hardware.printers.ensurePrinters = [ # { # description = "Drucker im FSR Buero"; # deviceUri = ""; @@ -16,5 +21,5 @@ # model = ""; # name = "Heiko"; # } - # ]; + #]; }