Arch Linux setup for Plutus Pioneer Program
Credit: https://github.com/andreiosg/ppp-archlinux
A setup guide for the Nix package manager and Cardano Plutus apps on Arch Linux for the Plutus Pioneers Program
Notes
- remember to
git checkoutthe correct commit based on the PPP week before building - due to
SIGSEGVwhen building the server and client theGC_DONT_GC=1environment variable is used to turn off the garbage collection in Mono userandrootprivileges will be denoted via the prefixes$and#respectively
Setup
Nix
For Nix setup the Nix ArchWiki was used, as well as the official Nix Arch package instead of the upstream script due to security reasons as noted in the wiki.
Install the Nix package:
Enable and start the nix-daemon.service:
Add your PPP $USER to the nix-users group.
Add a channel and update it:
Reboot.
Setup the IOHK binary cache based on the plutus-apps repository by editing ~/.config/nix/nix.conf with:
substituters = https://hydra.iohk.io https://iohk.cachix.org https://cache.nixos.org/
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
Set your user as a trusted Nix user by editing /etc/nix/nix.conf and add the line: