From df0d5caa70669b27d5a13e2816c7028b85cdc500 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Tue, 21 Jan 2020 08:40:10 +0100 Subject: [PATCH] feat: add sane --- configs/printing.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/configs/printing.nix b/configs/printing.nix index 155f5f4..1a5ca90 100644 --- a/configs/printing.nix +++ b/configs/printing.nix @@ -1,16 +1,24 @@ { pkgs, ... }: +let + hp-driver = pkgs.hplipWithPlugin; +in { services.printing = { enable = true; - drivers = [ pkgs.hplipWithPlugin ]; + drivers = [ hp-driver ]; }; - # networking.hosts."192.168.178.27" = [ "officejet" ]; + hardware.sane = { + enable = true; + extraBackends = [ hp-driver ]; + }; + + users.users.me.extraGroups = [ "scanner" ]; hardware.printers.ensurePrinters = [ { name = "OfficeJet"; - location = "Living room"; + location = "Zimmer"; deviceUri = "https://192.168.178.27"; model = "drv:///hp/hpcups.drv/hp-officejet_4650_series.ppd"; ppdOptions = {