Steps I used to print with a Brother HL-2240 printer on NixOS 23.11.
- Install virt-manager
- Install PopOS in a virtual machine
- Plug in Brother Printer USB
- Add USB device to Virtual Machine
- Setup printer in PopOS
- In a terminal on PopOS
sudo find / | grep -i hl |grep -i 2240 |grep -i "ppd$" - Copy the ppd file to NixOS
scp /etc/hl2440.ppd nixos@nixos:~/ - In Desktop Environment Printer Settings, Add Printer
- Right click ... and select Printer Details for HL-2240
- Use the ppd file in our home directory.