summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorsxyazi <sxyazi@gmail.com>2023-05-27 01:42:42 +0800
committersxyazi <sxyazi@gmail.com>2023-05-27 01:42:42 +0800
commitcfcfcc535e74ff41e07789625040f7c38a8d40d9 (patch)
tree167b6994b1f0a836c36238e25d8143cf021c5243 /modules/system
parentdf00ca18a35b0b9fdcdb1d862410af92582f5b61 (diff)
feat: use enum instead of str for constraints nicer
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/defaults/NSGlobalDomain.nix2
1 files changed, 1 insertions, 1 deletions
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'.