Set macOS user defaults. Values set to null are ignored.

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

Some settings are only read from targets.darwin.currentHostDefaults.

Declarations
Type
attribute set of attribute set of anything
Default
{ }
Example
{
  "com.apple.desktopservices" = {
    DSDontWriteNetworkStores = true;
    DSDontWriteUSBStores = true;
  };
}