On my Ubuntu 20.04 after update to the latest stable Nix package manager channel, devbox shell cannot detect NixOS version properly and fails to start.
└ ⚡ devbox shell
Error: Devbox requires nix of version >= 2.12.0. Your version is {nix 2.23.0pre20240526_7de033d6 x86_64-linux [i686-linux x86_64-v1-linux x86_64-v2-linux x86_64-v3-linux] [gc signed-caches] /etc/nix/nix.conf [/home/alex/.config/nix/nix.conf /etc/xdg/xdg-xmonad/nix/nix.conf /etc/xdg/nix/nix.conf] /nix/store /nix/var/nix /nix/store/hmgfvl3fq0wjy9nc61syad9ca6wb3dz1-nix-2.23.0pre20240526_7de033d6/share}. Please upgrade nix and try again.
What happened?
On my Ubuntu 20.04 after update to the latest stable Nix package manager channel, devbox shell cannot detect NixOS version properly and fails to start.
Steps to reproduce
1. 2. 3.
Command
No response
devbox.json
Devbox version
0.10.7
Nix version
nix (Nix) 2.23.0pre20240526_7de033d6
What system does this bug occur on?
Linux (x86-64)
Debug logs
└ DEVBOX_DEBUG=1 devbox shell 2024/06/06 09:31:11 findProjectDir: path is 2024/06/06 09:31:11 finding devbox config in dir: /home/alex/Code/ 2024/06/06 09:31:11 findProjectDir: path is 2024/06/06 09:31:11 finding devbox config in dir: /home/alex/Code/ 2024/06/06 09:31:11 nix --version --debug output: nix (Nix) 2.23.0pre20240526_7de033d6 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/alex/.config/nix/nix.conf:/etc/xdg/xdg-xmonad/nix/nix.conf:/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/hmgfvl3fq0wjy9nc61syad9ca6wb3dz1-nix-2.23.0pre20240526_7de033d6/share
Error: Devbox requires nix of version >= 2.12.0. Your version is {nix 2.23.0pre20240526_7de033d6 x86_64-linux [i686-linux x86_64-v1-linux x86_64-v2-linux x86_64-v3-linux] [gc signed-caches] /etc/nix/nix.conf [/home/alex/.config/nix/nix.conf /etc/xdg/xdg-xmonad/nix/nix.conf /etc/xdg/nix/nix.conf] /nix/store /nix/var/nix /nix/store/hmgfvl3fq0wjy9nc61syad9ca6wb3dz1-nix-2.23.0pre20240526_7de033d6/share}. Please upgrade nix and try again.
2024/06/06 09:31:11 ExecutionID:0ce5913fec1248f6a2c46ac45e42b857 Devbox requires nix of version >= 2.12.0. Your version is {nix 2.23.0pre20240526_7de033d6 x86_64-linux [i686-linux x86_64-v1-linux x86_64-v2-linux x86_64-v3-linux] [gc signed-caches] /etc/nix/nix.conf [/home/alex/.config/nix/nix.conf /etc/xdg/xdg-xmonad/nix/nix.conf /etc/xdg/nix/nix.conf] /nix/store /nix/var/nix /nix/store/hmgfvl3fq0wjy9nc61syad9ca6wb3dz1-nix-2.23.0pre20240526_7de033d6/share}. Please upgrade nix and try again.
go.jetpack.io/devbox/internal/boxcli/usererr.New go.jetpack.io/devbox/internal/boxcli/usererr/usererr.go:29 go.jetpack.io/devbox/internal/nix.EnsureNixInstalled.func1 go.jetpack.io/devbox/internal/nix/install.go:121 go.jetpack.io/devbox/internal/nix.EnsureNixInstalled go.jetpack.io/devbox/internal/nix/install.go:135 go.jetpack.io/devbox/internal/boxcli.ensureNixInstalled go.jetpack.io/devbox/internal/boxcli/setup.go:51 github.com/spf13/cobra.(Command).execute github.com/spf13/cobra@v1.8.0/command.go:968 github.com/spf13/cobra.(Command).ExecuteC github.com/spf13/cobra@v1.8.0/command.go:1115 github.com/spf13/cobra.(Command).Execute github.com/spf13/cobra@v1.8.0/command.go:1039 go.jetpack.io/devbox/internal/boxcli/midcobra.(midcobraExecutable).Execute go.jetpack.io/devbox/internal/boxcli/midcobra/midcobra.go:61 go.jetpack.io/devbox/internal/boxcli.Execute go.jetpack.io/devbox/internal/boxcli/root.go:113 go.jetpack.io/devbox/internal/boxcli.Main go.jetpack.io/devbox/internal/boxcli/root.go:136 main.main go.jetpack.io/devbox/cmd/devbox/main.go:11 runtime.main runtime/proc.go:271 runtime.goexit runtime/asm_amd64.s:1695 2024/06/06 09:31:11 findProjectDir: path is 2024/06/06 09:31:11 finding devbox config in dir: /home/alex/Code/