Flake for my NixOS devices
at musnix 25 lines 540 B view raw
1{...}: { 2 config, 3 lib, 4 ... 5}: { 6 options.cow.print.enable = lib.mkEnableOption "stateless printing + WCU printers"; 7 8 config = lib.mkIf config.cow.print.enable { 9 services.printing = { 10 enable = true; 11 stateless = true; 12 }; 13 14 hardware.printers = { 15 ensurePrinters = [ 16 { 17 name = "RamPrint"; 18 description = "WCU RamPrint"; 19 deviceUri = "https://wcuprintp01.wcupa.net:9164/printers/RamPrint"; 20 model = "drv:///sample.drv/generic.ppd"; 21 } 22 ]; 23 }; 24 }; 25}