From df00ca18a35b0b9fdcdb1d862410af92582f5b61 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 27 May 2023 01:37:34 +0800 Subject: feat: add `AppleWindowTabbingMode` option --- modules/system/defaults/NSGlobalDomain.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'modules/system') diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index 0224b70..c9633c3 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -152,6 +152,14 @@ in { ''; }; + system.defaults.NSGlobalDomain.AppleWindowTabbingMode = mkOption { + type = types.nullOr types.str; + default = null; + description = '' + Sets the window tabbing when opening a new document: 'manual', 'always', or 'fullscreen'. The default is 'fullscreen'. + ''; + }; + system.defaults.NSGlobalDomain.NSNavPanelExpandedStateForSaveMode = mkOption { type = types.nullOr types.bool; default = null; -- cgit v1.2.3 From cfcfcc535e74ff41e07789625040f7c38a8d40d9 Mon Sep 17 00:00:00 2001 From: sxyazi Date: Sat, 27 May 2023 01:42:42 +0800 Subject: feat: use enum instead of str for constraints nicer --- modules/system/defaults/NSGlobalDomain.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/system') diff --git a/modules/system/defaults/NSGlobalDomain.nix b/modules/system/defaults/NSGlobalDomain.nix index c9633c3..5888d7c 100644 --- a/modules/system/defaults/NSGlobalDomain.nix +++ b/modules/system/defaults/NSGlobalDomain.nix @@ -153,7 +153,7 @@ in { }; system.defaults.NSGlobalDomain.AppleWindowTabbingMode = mkOption { - type = types.nullOr types.str; + type = types.nullOr (types.enum [ "manual" "always" "fullscreen" ]); default = null; description = '' Sets the window tabbing when opening a new document: 'manual', 'always', or 'fullscreen'. The default is 'fullscreen'. -- cgit v1.2.3