Nixos configure a printer

69 Words

2026-02-07 11:41 +0100


Edit your /etc/nixos/configuration.nix and add the following lines : [source, bash] ---- # Enable CUPS to print documents. services.printing.enable = true; # Add drivers if necessary services.printing.drivers = [ pkgs.brlaser ]; # Enable Firewall rules and network protocol for printers services.avahi = { enable = true; nssmdns4 = true; openFirewall = true; }; ---- After using the command "nixos-rebuild switch" you can configure your printer inside cups at http://localhost:631/