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