-
-
Notifications
You must be signed in to change notification settings - Fork 472
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
System defaults not applied properly nor globally #1207
Comments
Currently The easiest way to test is usually to run We'll need to remove Currently we only manage defaults for the primary user (the user you run I don't have the time to work on any of the changes I've described, so feel free to make PRs and I'll review them |
i'm not sure this is the same issue but it is also happened to me system.defaults = {
dock.autohide = true # --> this is working;
dock.persistent-apps = [
"${pkgs.arc-browser}/Applications/Arc.app" # --> this is working;
];
NSGlobalDomain."com.apple.swipescrolldirection" = false; # --> this is working;
NSGlobalDomain.KeyRepeat = 2; # --> this is not working;
NSGlobalDomain.AppleInterfaceStyle = "Dark"; # --> this is not working;
}; when i ran defaults read NSGlobalDomain AppleInterfaceStyle the result is I'm in the macOS 14.6.1 Sonoma |
Ah forget about that. All I needed was to logout and login again. However, the options in System Settings are not updated when I set stuff like |
@bryanprimus Are you sure that setting defaults read -globalDomain AppleInterfaceStyle &> /dev/null && echo "In dark mode" || echo "In light mode" |
I can confirm that setting |
AppleScript? osascript -e 'tell application "System Events" to tell appearance preferences to set dark mode to not dark mode' |
Yeah, AppleScript works, but I was hoping for a way that wouldn't require it and the associated Automation permission. |
Hi,
I recently setup a new MacBook with nix-darwin as I wanted to give it a try for a while.
I noticed that the
system.defaults...
don't seem to be set properly nor globally (for all users). It's entirely possible that I made a mistake as I'm very new to this.I have the following defaults:
Firstly I noticed that
trackpad.Clicking
seems to work1, however in System Settings > Trackpad > Tap to click is still disabled. It is technically working I guess, but gives me the slightly uneasy feeling that settings are not being applied properly. The same applies totrackpad.TrackpadThreeFingerDrag
and System Settings > Accessibility > Pointer Control > Trackpad Options... > Use trackpad for dragging.controlcenter.BatteryShowPercentage
on the other hand works just fine and is also reflected in the settings.screensaver.askForPassword
andscreensaver.askForPasswordDelay
don't seem to take affect at all, which is more of an issue, especially with these settings being security relevant. This seems to have been mentioned before in #908.Finally, all these settings do not seem to work for another user on the system. I have the user listed under
users.users
, but evencontrolcenter.BatteryShowPercentage
, which is working as expected for the user controlling nix-darwin, is not being applied.Is this a bug or is there something wrong with my multi user setup? I'm happy to share more details if needed and appreciate any help!
Basic system infos:
MacBook Pro with M4 Pro
macOS: 15.1.1
nix-darwin: 6ab87b7
Footnotes
It may be that it only worked after a restart. I don't quite remember, but there was something that only worked after a restart. ↩
The text was updated successfully, but these errors were encountered: