You'll need a running instance of nixd which can be downloaded from https://github.com/NixPlatform/NixCore/releases. 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.
SDK
You can use yarn or npm to install the SDK.
yarn add nix-core
or
npm install nix-core --save
Node Configuration
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:
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 here.
Official NIX SDK Node
Alternatively, you can connect to ny.nixplatform.io using the following parameters: