···1515First, choose the multi-user installation:
1616`sh <(curl --proto '=https' --tlsv1.2 -L https://nixos.org/nix/install) --daemon`
17171818-> **Note**: The installer will complain, that you don't have `systemd` installed.
1818+> **Note**: The installer will complain, that you don't have `systemd` installed.
1919> This is expected—we will handle that next.
20202121-Next, add the `nix` daemon to the services of your Sprite:
2121+Next, add the `nix` daemon to the services of your Sprite:
2222+2223```bash
2323-sprite-env services create nix-daemon \
2424- --cmd sudo \
2424+sprite-env services create nix-daemon \
2525+ --cmd sudo \
2526 --args /nix/var/nix/profiles/default/bin/nix-daemon
2627```
2728···29303031## Errors I encountered
31323232-### `nix develop` hangs on `copying [something] to the store`
3333+`nix develop` hangs on `copying [something] to the store`
33343435This was really annoying, because the Sprite would just crash after a few minutes stuck at this step.
3536···4041- Add `trusted-users = root sprite` to `/etc/nix/nix.conf`
4142- Restart the nix daemon (using `sprite-env`)
42434343-### `nix store info` hangs at `Store URL: daemon`
4444+<hr>
4545+4646+`nix store info` hangs at `Store URL: daemon`
44474548The issue here is most likely, that the daemon is not running as root.
4649