services.printing.startWhenNeeded
NixOS option
If set, CUPS is socket-activated; that is, instead of having it permanently running as a daemon, systemd will start it on the first incoming connection.
type: booleanDefault
declared in: nixos/modules/services/printing/cupsd.nixView source on NixOS/nixpkgs →true