scanning: use hplipWithPlugin as extraBackend for sane

This commit is contained in:
ItsDrike 2024-08-22 02:23:16 +02:00
parent 77984ef59e
commit f12f74f77a
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -36,7 +36,10 @@ in {
myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip"; myOptions.system.impermanence.home.extraDirectories = optional cfg.hplip.enable ".hplip";
# Support for SANE (Scanner Access Now Easy) scanners # 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.scanner.members = ["${cfgUser}"];
users.extraGroups.lp.members = ["${cfgUser}"]; users.extraGroups.lp.members = ["${cfgUser}"];