nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

Cannot do nix-darwin install without rebooting first

Open shyim opened this issue 2 years ago • 7 comments
trafficstars

Would you like to edit the default configuration.nix before starting? [y/n] y
Would you like to manage <darwin> with nix-channel? [y/n] y
error: opening '/Users/shyim/.nix-channels' for writing: Permission denied

by running sudo chown -R shyim /Users/shyim/.nix-channels I am one step further

but now something with /run fails

setting up /run via /etc/synthetic.conf...
warning: apfs.util failed to symlink /run
setting up /run...
ln: failed to create symbolic link '/run': Read-only file system

shyim avatar Feb 25 '23 11:02 shyim

Thanks for reporting this! I'll take a look at it.

Hoverbear avatar Feb 27 '23 16:02 Hoverbear

The /run issue was solved by rebooting the mac. But the nix-channel file has wrong permissions :)

shyim avatar Feb 27 '23 16:02 shyim

That makes sense! Thanks!

Hoverbear avatar Feb 27 '23 17:02 Hoverbear

The permissions issue is #287 I think

Hoverbear avatar Mar 06 '23 17:03 Hoverbear

Just noting that this is still an issue in the latest version on macos even though https://github.com/DeterminateSystems/nix-installer/pull/304 has been merged!

martaver avatar Jun 05 '23 15:06 martaver

Thanks! I'll take a look and see if I can improve the situation.

Hoverbear avatar Jun 05 '23 17:06 Hoverbear

Happy to help debug from my end, if I can!

martaver avatar Jun 05 '23 18:06 martaver