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 anythingDefault
{ }Example
{
"com.apple.controlcenter" = {
BatteryShowPercentage = true;
};
}Sign in to create a configuration using this setting.