Initial Setup
Preparing to use the NIX SDK
Last updated
Was this helpful?
Preparing to use the NIX SDK
Last updated
Was this helpful?
You'll need a running instance of nixd which can be downloaded from . After you've downloaded the nixd binary, create a config file in ~/.nix
named nix.conf
and configure the daemon to your liking. A working and valid example is shown below. Once configured, simply execute nixd or setup a systemd service to manage it.
You can use yarn or npm to install the SDK.
or
To establish a connection between the nixd instance and the SDK, an appropriate nix.conf configuration file is required.
After nixd has been started with the above configuration, an instance can be created in the controlling JavaScript file:
Alternatively, you can connect to ny.nixplatform.io using the following parameters:
More options can be found in the nix-core package documentation. With the client
object, any command can now be executed. A list of selected commands can be found .