option

targets.darwin.currentHostDefaults

Set macOS user defaults. Unlike targets.darwin.defaults, the preferences will only be applied to the currently logged-in host. This distinction is important for networked accounts. Values set to null are ignored.

Some settings might require a re-login to take effect.

Declarations
Type
attribute set of attribute set of anything
Default
{ }
Example
{
  "com.apple.controlcenter" = {
    BatteryShowPercentage = true;
  };
}