1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

feat: use enum instead of str for constraints nicer

This commit is contained in:
sxyazi 2023-05-27 01:42:42 +08:00
parent df00ca18a3
commit cfcfcc535e
No known key found for this signature in database

View file

@ -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'.