fork/home-manager
git clone https://git.julia.blue/fork/home-manager
572f348a
master
1{ config , lib , ...} : 2 3let 4mkNullableOption = args : 5lib . mkOption ( args // { 6type = lib . types . nullOr args . type ; 7default = null ; 8}); 9 10mkNullableEnableOption = name : 11lib . mkOption { 12type = with lib . types ; nullOr bool ; 13default = null ; 14example = true ; 15description = "Whether to enable ${ name } ." ; 16}; 17in { 18freeformType = with lib . types ; attrsOf ( attrsOf anything ); 19 20options = { 21"com.apple.controlcenter" . BatteryShowPercentage = mkNullableOption { 22type = lib . types . bool ; 23example = true ; 24description = '' 25Whether to show battery percentage in the menu bar. 26'' ; 27}; 28}; 29}