Skip to content

Devbox is failing when an empty /nix folder exists #2601

Open
@ascknx

Description

@ascknx

What happened?

I want to use devbox in docker and mount the /nix volume.
Initially the volume is empty and I would expect that devbox can handle that.
But it fails with:
Error: We found a /nix directory but nix binary is not in your PATH and we were not able to find it in the usual locations. Your nix installation might be broken. If restarting your terminal or reinstalling nix doesn't work, please create an issue at https://github.com/jetify-com/devbox/issues

Steps to reproduce

  1. create an empty /nix folder
  2. start devbox

Command

No response

devbox.json

Devbox version

0.14.2

Nix version

No response

What system does this bug occur on?

Linux

Debug logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageIssue needs triage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions