Start from a template
NXC proposes several templates, which are good starting points.
Let us use the basic one.
mkdir tuto
cd tuto
nxc init -t basic
The previous command created 3 files in the tuto folder:
-
nxc.json: a JSON file required by NXC. You never have to modify it. -
flake.nix: the Nix file responsible to lock all the inputs. -
composition.nix: the Nix file representing the distributed environment.