mirror of
https://github.com/nix-community/home-manager
synced 2024-11-18 00:59:44 +01:00
572f348a10
Closes #2615
18 lines
578 B
Nix
18 lines
578 B
Nix
{ lib, ... }:
|
|
|
|
{
|
|
config = {
|
|
targets.darwin = {
|
|
defaults."com.apple.desktopservices".DSDontWriteNetworkStores = true;
|
|
currentHostDefaults."com.apple.controlcenter".BatteryShowPercentage =
|
|
true;
|
|
};
|
|
|
|
nmt.script = ''
|
|
assertFileRegex activate \
|
|
"defaults import 'com.apple.desktopservices' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.desktopservices\\.plist"
|
|
assertFileRegex activate \
|
|
"defaults -currentHost import 'com.apple.controlcenter' /nix/store/[a-z0-9]\\{32\\}-com\\.apple\\.controlcenter\\.plist"
|
|
'';
|
|
};
|
|
}
|