fission-codes / dashboard

The account dashboard for the Fission platform
https://dashboard.fission.codes
GNU Affero General Public License v3.0
8 stars 0 forks source link

Add rosetta nix override #38

Closed justindotpub closed 2 years ago

justindotpub commented 2 years ago

Summary

Adds a rosetta nix override, similar to the other projects.

Background

I'm sure whoever sees this PR already knows, but for anyone else new to Nix like myself, to use this, Nix must be configured as follows.

Open a terminal, without Rosetta enabled and run the following.

# Install Nix, per instructions on their site
sh <(curl -L https://nixos.org/nix/install) --daemon

# Add support for x86 via Rosetta where needed
cat <<EOF | sudo tee -a /etc/nix/nix.conf
extra-platforms = x86_64-darwin
EOF

# Reboot so the config change takes effect, or bounce the daemon.  Then...

cd path/to/dashboard
nix-shell --arg rosetta true