mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 11:36:05 +01:00
26 lines
485 B
Nix
26 lines
485 B
Nix
{ lib, ... }:
|
|
|
|
let
|
|
mkNullableOption =
|
|
args:
|
|
lib.mkOption (
|
|
args
|
|
// {
|
|
type = lib.types.nullOr args.type;
|
|
default = null;
|
|
}
|
|
);
|
|
in
|
|
{
|
|
freeformType = with lib.types; attrsOf (attrsOf anything);
|
|
|
|
options = {
|
|
"com.apple.controlcenter".BatteryShowPercentage = mkNullableOption {
|
|
type = lib.types.bool;
|
|
example = true;
|
|
description = ''
|
|
Whether to show battery percentage in the menu bar.
|
|
'';
|
|
};
|
|
};
|
|
}
|