Skip to content

Instantly share code, notes, and snippets.

@Boarders
Last active February 28, 2020 17:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Boarders/e88e852c3395ef96dfba987c7b651396 to your computer and use it in GitHub Desktop.
Save Boarders/e88e852c3395ef96dfba987c7b651396 to your computer and use it in GitHub Desktop.
+ set -e
+ main
+ echo ''
+ echo ' ------------------------------------------------------------------ '
------------------------------------------------------------------
+ echo ' | This installer will create a volume for the nix store and |'
| This installer will create a volume for the nix store and |
+ echo ' | configure it to mount at /nix. Follow these steps to uninstall. |'
| configure it to mount at /nix. Follow these steps to uninstall. |
+ echo ' ------------------------------------------------------------------ '
------------------------------------------------------------------
+ echo ''
+ echo ' 1. Remove the entry from fstab using '\''sudo vifs'\'''
1. Remove the entry from fstab using 'sudo vifs'
+ echo ' 2. Destroy the data volume using '\''diskutil apfs deleteVolume'\'''
2. Destroy the data volume using 'diskutil apfs deleteVolume'
+ echo ' 3. Delete /etc/synthetic.conf'
3. Delete /etc/synthetic.conf
+ echo ''
+ '[' -L /nix ']'
+ test_synthetic_conf
+ grep -q '^nix' /etc/synthetic.conf
+ test_nix
+ test -d /nix
+ echo 'Creating mountpoint for /nix...'
Creating mountpoint for /nix...
+ sudo mkdir /nix
mkdir: /nix: Read-only file system
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment