{ config, lib, ... }: with lib; { options.components.gui.cups.enable = mkOption { type = lib.types.bool; default = config.components.gui.enable; }; config = mkIf (config.components.gui.cups.enable) { hardware.printers.ensurePrinters = [ { description = "Lexmark E350d"; deviceUri = "usb://Lexmark/E350d?serial=622Z9ZC"; location = "office"; name = "Lexmark_E350d"; model = "drv:///sample.drv/generic.ppd"; ppdOptions = { job-sheets = "none, none"; media = "na_letter_8.5x11in"; sides = "one-sided"; }; } ]; }; }