This is the error I have when trying to rebuild my nix darwin configuration. I use kitty terminal, and in macOS settings I gave it full disk access and access to update other apps (app management).
0: Darwin activation failed
1: Activating configuration (exit status ExitStatus(Exited(1)))
stderr:
[a bunch of lines ommitted]
Activating installPackages
Activating linkGeneration
Cleaning up orphan links from /Users/user
Creating home file links in /Users/user
ln: failed to create symbolic link '/Users/user/Library/Application Support/Firefox/Profiles/o9fiaukr.2nd Profile/user.js': Operation not permitted
ln: failed to create symbolic link '/Users/user/Library/Application Support/Firefox/Profiles/o9fiaukr.2nd Profile/.keep': Operation not permitted
I use the same home.nix for both NixOS and Nix Darwin.
programs.firefox = {
enable = true;
profiles = {
default = {
id = 0;
name = "Default";
isDefault = true;
path = firefox-profile;
};
secondary = {
id = 1;
name = "Secondary";
path = "o9fiaukr.2nd Profile";
};
};
};