mirror of
https://gitlab.com/Zaney/zaneyos.git
synced 2025-06-21 20:42:04 +02:00
Add scanning support to the printer option cuz Jerry is awesome
This commit is contained in:
commit
d3b687b521
@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, username, ... }:
|
||||
|
||||
let inherit (import ../../options.nix) printer; in
|
||||
lib.mkIf (printer == true) {
|
||||
@ -9,5 +9,12 @@ lib.mkIf (printer == true) {
|
||||
nssmdns4 = true;
|
||||
openFirewall = true;
|
||||
};
|
||||
ipp-usb.enable = true;
|
||||
};
|
||||
hardware.sane = {
|
||||
enable = true;
|
||||
extraBackends = [pkgs.sane-airscan];
|
||||
disabledDefaultBackends = ["escl"];
|
||||
};
|
||||
users.users.${username}.extraGroups = ["scanner" "lp"];
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user