NOTE: how to install Nix package manager on MacOS Catalina
source link: https://dannypsnl.github.io/blog/2020/04/17/cs/note-how-to-install-nix-on-macos-catalina/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
WARNING: This should no longer work, refer to https://hydra.nixos.org/build/119559243/download/1/manual/#sect-macos-installation Since MacOS…NOTE: how to install Nix package manager on MacOS Catalina
Email: [email protected]
GitHub: @dannypsnl
Twitter: @dannypsnl
Programming Language Theory • System Programming
NOTE: how to install Nix package manager on MacOS Catalina
WARNING: This should no longer work, refer to https://hydra.nixos.org/build/119559243/download/1/manual/#sect-macos-installation
Since MacOS Catalina adds some new rules, root path cannot be used by applicatin now, caused Nix package manager cannot work! The problem is Nix stores all data in /nix
this path. Unfortunately, Catalina disallows that. To solve thi s HeI write this note for solution.
From zetavg's comment:
# Create a volume for the nix store and configure it to mount at /nix.
wget https://raw.githubusercontent.com/LnL7/nix/darwin-10.15-install/scripts/create-darwin-volume.sh
bash create-darwin-volume.sh
# The following options can be enabled to disable spotlight indexing of the volume, which might be desirable.
sudo mdutil -i off /nix
# Hides the "Nix Store" disk on Desktop, need to relaunch Finder to see effect. Will not be necessary after the PR comment https://git.io/Jv2xT is accepted.
sudo SetFile -a V /nix
Probably a better one? https://hackmd.io/@z/nix-store-macos-tm-recover
Thanks zetavg!
author: Lîm Tsú-thuàn/林子篆/Danny
category:cs
tag:notenixmacoscatalina
Similar Articles
All works in this site is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK