2022-04-24 09:19:56 +02:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
targets.darwin = {
|
|
|
|
defaults."com.apple.desktopservices".DSDontWriteNetworkStores = true;
|
|
|
|
currentHostDefaults."com.apple.controlcenter".BatteryShowPercentage =
|
|
|
|
true;
|
|
|
|
};
|
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileRegex activate \
|
2022-11-05 04:10:27 +01:00
|
|
|
"/usr/bin/defaults import 'com.apple.desktopservices' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.desktopservices\\.plist"
|
2022-04-24 09:19:56 +02:00
|
|
|
assertFileRegex activate \
|
2022-11-05 04:10:27 +01:00
|
|
|
"/usr/bin/defaults -currentHost import 'com.apple.controlcenter' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.controlcenter\\.plist"
|
2022-04-24 09:19:56 +02:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|