feat(hardware): configure comprehensive printing and scanning support
- Add `"lp"` and `"scanner"` groups to user accounts on both desktop and laptop hosts. - Configure `services.printing` with Epson and Gutenprint drivers. - Enable `services.avahi` (mDNS/Zeroconf) with firewall rules for Wi-Fi printer discovery. - Enable `hardware.sane` with `epsonscan2` backend support. - Add `system-config-printer` and `simple-scan` to system-wide packages.
This commit is contained in:
1 parent
53847d3496
commit
5a09885c49
3 files changed
+29
-2
No files matched your search
@@ -47,6 +47,8 @@
|
|||||||
"wheel" # Enable sudo access for administrative tasks
|
"wheel" # Enable sudo access for administrative tasks
|
||||||
"docker" # Allows running docker commands without sudo
|
"docker" # Allows running docker commands without sudo
|
||||||
"networkmanager" # Allows modifying network configurations
|
"networkmanager" # Allows modifying network configurations
|
||||||
|
"lp" # Allows managing printers and print jobs
|
||||||
|
"scanner" # Allows access to scanners
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -46,6 +46,8 @@
|
|||||||
"wheel" # Enable sudo access for administrative tasks
|
"wheel" # Enable sudo access for administrative tasks
|
||||||
"docker" # Allows running docker commands without sudo
|
"docker" # Allows running docker commands without sudo
|
||||||
"networkmanager" # Allows modifying network configurations
|
"networkmanager" # Allows modifying network configurations
|
||||||
|
"lp" # Allows managing printers and print jobs
|
||||||
|
"scanner" # Allows access to scanners
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+25
-2
@@ -23,12 +23,35 @@
|
|||||||
pulse.enable = true; # Enable legacy PulseAudio emulation wrapper
|
pulse.enable = true; # Enable legacy PulseAudio emulation wrapper
|
||||||
};
|
};
|
||||||
|
|
||||||
# Enable printing service
|
# 🖨️ Printing & Scanning configuration (with Epson drivers & Avahi network discovery)
|
||||||
services.printing.enable = true;
|
services.printing = {
|
||||||
|
enable = true;
|
||||||
|
drivers = with pkgs; [
|
||||||
|
epson-escpr
|
||||||
|
epson-escpr2
|
||||||
|
gutenprint
|
||||||
|
gutenprintBin
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
# Enable mDNS / Zeroconf discovery for Wi-Fi printers
|
||||||
|
services.avahi = {
|
||||||
|
enable = true;
|
||||||
|
nssmdns4 = true;
|
||||||
|
openFirewall = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# SANE scanner support (includes Epson scanner backend)
|
||||||
|
hardware.sane = {
|
||||||
|
enable = true;
|
||||||
|
extraBackends = [ pkgs.epsonscan2 ];
|
||||||
|
};
|
||||||
|
|
||||||
# System-wide packages
|
# System-wide packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
cups-pk-helper
|
cups-pk-helper
|
||||||
|
system-config-printer
|
||||||
|
simple-scan
|
||||||
rclone
|
rclone
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user