# Error using flox on nix on wsl without daemon

**URL:** <https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448>\
**Category:** Help\
**Created:** [October 27, 2022, 7:18pm UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448 "2022-10-27T19:18:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hellwolf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/hellwolf/32/407_2.png) [@hellwolf](https://discourse.flox.dev/u/hellwolf)\
**Post date:** [October 27, 2022, 7:18pm UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448/1 "2022-10-27T19:18:47Z")

</div>

I am trying flox on a nix installation on wsl, but it is not using the nix daemon. I followed instruction on [https://alpha.floxsdlc.com/docs/getting-started/install-flox/](https://alpha.floxsdlc.com/docs/getting-started/install-flox/) nonetheless:

```auto
$ flox --version
Version: 0.0.6-r43

$ cat ~/.config/nix/nix.conf
experimental-features = nix-command flakes
nix.settings.trusted-substituters = ["https://cache.floxdev.com?trusted=1"];
nix.settings.trusted-public-keys = ["flox-store-public-0:8c/B+kjIaQ+BloCmNkRUKwaVPFWkriSAd0JJvuDu4F0="];

$ flox activate
Updating /home/hellwolf/.config/flox/nix.conf
Updating /home/hellwolf/.config/flox/gitconfig
error: cannot connect to socket at '/nix/var/nix/daemon-socket/socket': No such file or directory
(use '--show-trace' to show detailed location information)

ERROR: could not verify defaultFlake URL: "github:flox/floxpkgs/master"

```

---

<div class="post-metadata">

**Author:** ![limeytexan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/limeytexan/32/10_2.png) [@limeytexan](https://discourse.flox.dev/u/limeytexan)\
**Post date:** [October 28, 2022, 11:16am UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448/2 "2022-10-28T11:16:31Z")

</div>

Thanks for the feedback - we’ve been developing exclusively in multi-user mode because it has several advantages, but you’re right that we’ve neglected to provide support for single-user mode. We’ll log an issue to improve this support, but in the meantime you should be able to work around the problem and use flox by explicitly setting the value of `NIX_REMOTE` in your environment.

Can you try these commands and let us know if that works for you?

```auto
export NIX_REMOTE=auto
flox activate

```

Many thanks.

---

<div class="post-metadata">

**Author:** ![hellwolf](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/hellwolf/32/407_2.png) [@hellwolf](https://discourse.flox.dev/u/hellwolf)\
**Post date:** [October 28, 2022, 1:57pm UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448/3 "2022-10-28T13:57:31Z")

</div>

Thank you!

That did fix it.

---

<div class="post-metadata">

**Author:** ![limeytexan](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/limeytexan/32/10_2.png) [@limeytexan](https://discourse.flox.dev/u/limeytexan)\
**Post date:** [October 30, 2022, 3:55pm UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448/4 "2022-10-30T15:55:33Z")

</div>

Thanks for confirming - yesterday I followed in your footsteps and similarly got flox working on WSL2 Ubuntu, albeit with a nonstandard installation. We’ll work on making that a smoother experience going forward. 👍

---

<div class="post-metadata">

**Author:** ![robinbrantley](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.flox.dev/robinbrantley/32/39_2.png) [@robinbrantley](https://discourse.flox.dev/u/robinbrantley)\
**Post date:** [November 9, 2022, 12:34pm UTC](https://discourse.flox.dev/t/error-using-flox-on-nix-on-wsl-without-daemon/448/5 "2022-11-09T12:34:03Z")

</div>

> [@limeytexan](#):
>
> `export NIX_REMOTE=auto`

FYI - the above should no longer need to be manually set in the next version of flox.  
We are also actively working on improving and documenting the WSL installation.  
All will be announced on discourse once available 🙂
