From f12f74f77a6c5d8ff6a59353de530638affdc985 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 22 Aug 2024 02:23:16 +0200 Subject: [PATCH] scanning: use hplipWithPlugin as extraBackend for sane --- system/roles/workstation/services/printing.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/system/roles/workstation/services/printing.nix b/system/roles/workstation/services/printing.nix index bb3a496..fd785d5 100644 --- a/system/roles/workstation/services/printing.nix +++ b/system/roles/workstation/services/printing.nix @@ -36,7 +36,10 @@ in { myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip"; # Support for SANE (Scanner Access Now Easy) scanners - hardware.sane.enable = true; + hardware.sane = { + enable = true; + extraBackends = optional cfg.hplip.enable pkgs.hplipWithPlugin; + }; users.extraGroups.scanner.members = ["${cfgUser}"]; users.extraGroups.lp.members = ["${cfgUser}"];