nixos-config icon indicating copy to clipboard operation
nixos-config copied to clipboard

ln: failed to create symbolic link '.../Applications/Home Manager Apps': Permission denied

Open ParetoOptimalDev opened this issue 3 years ago • 3 comments

With just 2130b83 when I try to use nix develop -c , activate I get the error:

Creating home file links in /Users/johnw
ln: failed to create symbolic link '/Users/.../Applications/Home Manager Apps': Permission denied

This seems related to an old but still active issue in home-manager where it conflicts with nix-darwin:

https://github.com/nix-community/home-manager/issues/1341

ParetoOptimalDev avatar Mar 09 '23 05:03 ParetoOptimalDev

Skimming that issue, it may be that I'm still on an older OSX version than you are if you aren't experiencing this issue.

ParetoOptimalDev avatar Mar 09 '23 05:03 ParetoOptimalDev

FWIW: on my macOS,

❯ sw_vers
ProductName:		macOS
ProductVersion:		13.1
BuildVersion:		22C65

❯ ls -ld ~/Applications/Home\ Manager\ Apps
lrwxr-xr-x 93 srid  8 Mar 10:04 /Users/srid/Applications/Home Manager Apps -> /nix/store/d05ssz859zi0bbwra1ybniq21xs18vrm-home-manager-files/Applications/Home Manager Apps

srid avatar Mar 11 '23 17:03 srid

Using a nix darwin & home manager configuration with flakes, I also get this error:

Creating home file links in /Users/dan ln: failed to create symbolic link '/Users/dan/Applications/Home Manager Apps': Permission denied

When I do rm -rf ~/Applications then redo the darwin-rebuild switch command it works.

dansteeves68 avatar Dec 02 '23 18:12 dansteeves68