mirror of
https://github.com/nix-community/home-manager
synced 2024-08-20 19:16:31 +02:00
19 lines
596 B
Nix
19 lines
596 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
config = {
|
|
targets.darwin = {
|
|
defaults."com.apple.desktopservices".DSDontWriteNetworkStores = true;
|
|
currentHostDefaults."com.apple.controlcenter".BatteryShowPercentage =
|
|
true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileRegex activate \
|
|
"/usr/bin/defaults import 'com.apple.desktopservices' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.desktopservices\\.plist"
|
|
assertFileRegex activate \
|
|
"/usr/bin/defaults -currentHost import 'com.apple.controlcenter' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.controlcenter\\.plist"
|
|
'';
|
|
};
|
|
}
|