> ## Documentation Index
> Fetch the complete documentation index at: https://namespace.so/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Nix

Namespace provides high-performance compute instances that can be configured as remote Nix builders. This allows you to leverage Nix's [distributed builds](https://nix.dev/manual/nix/2.18/advanced-topics/distributed-builds) feature to offload builds to powerful remote machines, speeding up your development workflow while maintaining reproducibility.

Set up a DIY remote Nix builder on Namespace for faster and reproducible builds.

<Steps titleSize="h3">
  <Step title="Create a bare compute instance">
    Create a new compute instance with your SSH key:

    ```bash theme={null}
    nsc create --bare --ssh_key ~/.ssh/id_ed25519.pub
    ```

    You can use an existing SSH key or create a new one specifically for this purpose with `ssh-keygen -t ed25519`.

    Grab the instance ID from the output.
  </Step>

  <Step title="Install Nix on the remote instance">
    SSH into the instance and install Nix using the Determinate installer:

    ```bash theme={null}
    ssh <id>@ssh.ord2.namespace.so "curl -fsSL https://install.determinate.systems/nix | sh -s -- install linux --determinate --init none --no-confirm"
    ```
  </Step>

  <Step title="Test the installation">
    Verify Nix is working by running a simple command:

    ```bash theme={null}
    ssh <id>@ssh.ord2.namespace.so nix run nixpkgs#hello
    ```
  </Step>
</Steps>

Your remote Nix builder is now ready for use with high-performance compute and network access.
