at 25.11-pre 469 B view raw
1{ 2 config, 3 pkgs, 4 lib, 5 ... 6}: 7 8{ 9 10 ###### interface 11 12 options = { 13 14 programs.system-config-printer = { 15 16 enable = lib.mkEnableOption "system-config-printer, a Graphical user interface for CUPS administration"; 17 18 }; 19 20 }; 21 22 ###### implementation 23 24 config = lib.mkIf config.programs.system-config-printer.enable { 25 26 environment.systemPackages = [ 27 pkgs.system-config-printer 28 ]; 29 30 services.system-config-printer.enable = true; 31 32 }; 33 34}