diff --git a/hosts/desktop/configuration.nix b/hosts/desktop/configuration.nix index b3e49f9..77204cf 100644 --- a/hosts/desktop/configuration.nix +++ b/hosts/desktop/configuration.nix @@ -47,6 +47,8 @@ "wheel" # Enable sudo access for administrative tasks "docker" # Allows running docker commands without sudo "networkmanager" # Allows modifying network configurations + "lp" # Allows managing printers and print jobs + "scanner" # Allows access to scanners ]; }; diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index 71f10b7..73e46ad 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -46,6 +46,8 @@ "wheel" # Enable sudo access for administrative tasks "docker" # Allows running docker commands without sudo "networkmanager" # Allows modifying network configurations + "lp" # Allows managing printers and print jobs + "scanner" # Allows access to scanners ]; }; diff --git a/modules/system/base.nix b/modules/system/base.nix index 0199ab6..c36c509 100644 --- a/modules/system/base.nix +++ b/modules/system/base.nix @@ -23,12 +23,35 @@ pulse.enable = true; # Enable legacy PulseAudio emulation wrapper }; - # Enable printing service - services.printing.enable = true; + # 🖨️ Printing & Scanning configuration (with Epson drivers & Avahi network discovery) + 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 environment.systemPackages = with pkgs; [ cups-pk-helper + system-config-printer + simple-scan rclone ];