diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 4f08d4a..03a7da2 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -225,6 +225,14 @@ in { ''; }; + system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = mkOption { + type = types.nullOr types.bool; + default = null; + description = lib.mdDoc '' + Whether to enable moving window by holding anywhere on it like on Linux. The default is false. + ''; + }; + system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption { type = types.nullOr types.int; default = null; diff --git a/tests/system-defaults-write.nix b/tests/system-defaults-write.nix index e3f69fe..4745efd 100644 --- a/tests/system-defaults-write.nix +++ b/tests/system-defaults-write.nix @@ -27,6 +27,7 @@ system.defaults.NSGlobalDomain.NSUseAnimatedFocusRing = false; system.defaults.NSGlobalDomain.NSScrollAnimationEnabled = true; system.defaults.NSGlobalDomain.NSWindowResizeTime = 0.01; + system.defaults.NSGlobalDomain.NSWindowShouldDragOnGesture = true; system.defaults.NSGlobalDomain.InitialKeyRepeat = 10; system.defaults.NSGlobalDomain.KeyRepeat = 1; system.defaults.NSGlobalDomain.PMPrintingExpandedStateForPrint = true; @@ -99,6 +100,7 @@ grep "defaults write -g 'NSUseAnimatedFocusRing' -bool NO" ${config.out}/activate-user grep "defaults write -g 'NSScrollAnimationEnabled' -bool YES" ${config.out}/activate-user grep "defaults write -g 'NSWindowResizeTime' -float 0.01" ${config.out}/activate-user + grep "defaults write -g 'NSWindowShouldDragOnGesture' -bool YES" ${config.out}/activate-user grep "defaults write -g 'InitialKeyRepeat' -int 10" ${config.out}/activate-user grep "defaults write -g 'KeyRepeat' -int 1" ${config.out}/activate-user grep "defaults write -g 'PMPrintingExpandedStateForPrint' -bool YES" ${config.out}/activate-user