Building a node using Nix

Nix is a purely functional, cross-platform package manager for Linux and Unix systems. It is the package manager of choice for IOHK's internal development teams, and thus the recommended method for building a Cardano node to run on your machine.

Note: The following instructions assume you are using Linux and have curl installed. See the supported platforms page for more details about supported platforms for the Shelley testnet.

  1. Download and install the Nix package manager by running the following commands from a terminal:
curl -L -o
chmod +x ./
  1. Create a file with name nix.conf and add the following into the file:

    extra-sandbox-paths = /etc/nsswitch.conf /etc/protocols substituters = trusted-substituters = trusted-public-keys =

  2. Run:

./ --daemon --nix-extra-conf-files nix.conf
  1. Follow the instructions presented as part of the Nix installation process.

  2. Once Nix is installed, open a new nix-shell session and enter the following commands, which will clone the Cardano node GitHub repository, open the node file directory, build the node itself, and then run it:

git clone
cd cardano-node
nix-build -A scripts.ff.node -o ff-node-local

Please be aware that the process of building the node may take some time, possibly several hours.

You should now have a Cardano node running on your machine, connected to the Shelley testnet.

Last updated: May 19, 2020 16:17 UTC