Add dependencies to make network scanning work

This commit is contained in:
Jerry Starke 2024-02-08 06:15:45 +01:00
parent b16583cd23
commit 03897fd478

View File

@ -1,4 +1,4 @@
{ config, lib, username, ... }:
{ config, lib, pkgs, username, ... }:
let inherit (import ../../options.nix) printer; in
lib.mkIf (printer == true) {
@ -9,7 +9,12 @@ lib.mkIf (printer == true) {
nssmdns4 = true;
openFirewall = true;
};
ipp-usb.enable = true;
};
hardware.sane = {
enable = true;
extraBackends = [pkgs.sane-airscan];
disabledDefaultBackends = ["escl"];
};
hardware.sane.enable = true;
users.users.${username}.extraGroups = ["scanner" "lp"];
}