laptop-config/modules/printing.nix
2026-05-21 11:07:40 -07:00

33 lines
921 B
Nix

{ config, pkgs, ... }:
{
# === Network Printing ===
services.printing = {
enable = true;
drivers = with pkgs; [
gutenprint # Generic printer drivers
gutenprintBin # Binary firmware for some models
hplip # HP printer drivers + utilities
splix # Samsung printer drivers
brlaser # Brother laser printer drivers
brgenml1lpr # Brother generic LPR driver
brgenml1cupswrapper # Brother CUPS wrapper
canon-cups-ufr2 # Canon UFR2 drivers
cups-bjnp # Canon BJNP network backend
];
};
# Enable network printer discovery via mDNS/Bonjour
services.avahi = {
enable = true;
nssmdns4 = true;
publish = {
enable = true;
addresses = true;
workstation = true;
};
};
# Allow sscoble to admin printers without root
users.users.sscoble.extraGroups = [ "lp" ];
}