1
1
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-09-11 12:49:18 +03:00

Add NSGlobalDomain.NSAutomaticWindowAnimationsEnabled setting

* modules/system/defaults/NSGlobalDomain.nix: Define.
This commit is contained in:
Brian Leung 2022-01-24 20:06:13 -08:00
parent 20813f1df7
commit af3eb87e82
No known key found for this signature in database
GPG Key ID: 3ADC75F013D678F9
2 changed files with 10 additions and 0 deletions

View File

@ -135,6 +135,14 @@ in {
'';
};
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = mkOption {
type = types.nullOr types.bool;
default = null;
description = ''
Whether to animate opening and closing of windows and popovers. The default is true.
'';
};
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = mkOption {
type = types.nullOr types.bool;
default = null;

View File

@ -14,6 +14,7 @@
system.defaults.NSGlobalDomain.NSAutomaticPeriodSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticQuoteSubstitutionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticSpellingCorrectionEnabled = false;
system.defaults.NSGlobalDomain.NSAutomaticWindowAnimationsEnabled = false;
system.defaults.NSGlobalDomain.NSDisableAutomaticTermination = true;
system.defaults.NSGlobalDomain.NSDocumentSaveNewDocumentsToCloud = false;
system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = true;
@ -63,6 +64,7 @@
grep "defaults write -g 'NSAutomaticPeriodSubstitutionEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticQuoteSubstitutionEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticSpellingCorrectionEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSAutomaticWindowAnimationsEnabled' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSDisableAutomaticTermination' -bool YES" ${config.out}/activate-user
grep "defaults write -g 'NSDocumentSaveNewDocumentsToCloud' -bool NO" ${config.out}/activate-user
grep "defaults write -g 'NSNavPanelExpandedStateForSaveMode' -bool YES" ${config.out}/activate-user