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

Could not write domain com.apple.universalaccess during fresh nix-darwin install on a flake #1049

Open
aspauldingcode opened this issue Aug 27, 2024 · 6 comments

Comments

@aspauldingcode
Copy link
Contributor

My custom config is
https://github.com/aspauldingcode/.dotfiles
and the first rebuild to install nix-darwin and build with the project flake fails with the command:

nix run --extra-experimental-features "nix-command flakes" nix-darwin -- switch --flake ~/.dotfiles#NIXY

My darwin-defaults.nix:
https://github.com/aspauldingcode/.dotfiles/blob/766f3b87cb6782e932e60a7a2be8e837c7d5ca40/system/NIXY/modules/darwin-defaults.nix#L88

which contains
system.defaults.universalaccess = {
mouseDriverCursorSize = 1.2;
reduceMotion = true;
reduceTransparency = true;
};

which after commenting out, it will work and then I can add it back it will work.

@aspauldingcode
Copy link
Contributor Author

Why does this fail initially?

@dustypomerleau
Copy link

Could you post the error when it fails? One common issue is that setting any of the universal access settings requires you to give full disk access to the terminal you're using via System Settings > Privacy & Security > Full Disk Access.

@jadc
Copy link

jadc commented Sep 1, 2024

Could you post the error when it fails? One common issue is that setting any of the universal access settings requires you to give full disk access to the terminal you're using via System Settings > Privacy & Security > Full Disk Access.

This fixed the issue for me.

@aspauldingcode
Copy link
Contributor Author

Could you post the error when it fails?

That might take me some time..
I don't think I can reset my laptop until the end of the semester for college.

But, I will get back to you if I don't forget.

@aspauldingcode
Copy link
Contributor Author

Is there a command that can solve this?
I really don't want to have to manually click sh*t on macOS to set this up

@aspauldingcode
Copy link
Contributor Author

I got the perfect idea - Throw an error or warning message when this fails to compile based on this permissions issue specific setting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants