Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NSStatusItemSpacing and NSStatusItemSelectionPadding #872

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions modules/system/defaults/NSGlobalDomain.nix
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,24 @@ in {
'';
};

system.defaults.NSGlobalDomain.NSStatusItemSpacing = mkOption {
type = types.nullOr types.int;
default = null;
example = 12;
description = ''
Sets the spacing between status icons in the menu bar. The default is null.
Copy link
Collaborator

@Enzime Enzime Feb 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description should specify the macOS default like the rest of the options

system.defaults.NSGlobalDomain.AppleShowAllFiles = mkOption {
type = types.nullOr types.bool;
default = null;
description = lib.mdDoc ''
Whether to always show hidden files. The default is false.
'';
};

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are the MacOS defaults. Both of these options are unset by default.

'';
};

system.defaults.NSGlobalDomain.NSStatusItemSelectionPadding = mkOption {
type = types.nullOr types.int;
default = null;
example = 6;
description = ''
Sets the padding around status icons in the menu bar. The default is null.
'';
};

system.defaults.NSGlobalDomain.InitialKeyRepeat = mkOption {
type = types.nullOr types.int;
default = null;
Expand Down
Loading