Skip to content

nix config show system prints x86-linux for the i686 version #13532

@NobbZ

Description

@NobbZ

Describe the bug

The default value for the system config is x86-linux which breaks nixpkgs.

Steps To Reproduce

  1. Build nix with nix build --system i686-linux
  2. Do not have system in any of your nix configs!
  3. Run ./result/bin/nix config show system or ./result/bin/nix eval --impure --expr 'builtins.currentSystem'
  4. See x86-linux

Alternatively try to use that nix to build anything from nixpkgs, see it fail with an error that x86 was not a valid CPU.

Expected behavior

See i686-linux when doing the above steps

Builds from nixpkgs succeed.

Metadata

$ nix --version
nix (Nix) 2.31.0pre20250719_c70e143

Additional context

did a bisection, the problem exists since b41cc1a.

Bisection log
git bisect start
# status: waiting for both good and bad commits
# bad: [5c5a737885e9e015b66fb03a9252f8e771b2d28d] Mark stable release
git bisect bad 5c5a737885e9e015b66fb03a9252f8e771b2d28d
# status: waiting for good commit(s), bad commit known
# good: [206e32e2d7c72c940a4348648f5de46122c495c9] Mark release
git bisect good 206e32e2d7c72c940a4348648f5de46122c495c9
# good: [b24757f08ab4ae98a9b6e8756fe21fa7e2d55248] Merge pull request #11231 from DeterminateSystems/release-notes
git bisect good b24757f08ab4ae98a9b6e8756fe21fa7e2d55248
# bad: [ec2b01585f52ff9746162be34486d2da57c5287a] Merge pull request #11526 from quatquatt/update-multiple-inputs
git bisect bad ec2b01585f52ff9746162be34486d2da57c5287a
# bad: [85f1aa6b3df5c5fcc924a74e2a9cc8acea9ba0e1] Merge pull request #11356 from ehmry/nix_store_copy_closure
git bisect bad 85f1aa6b3df5c5fcc924a74e2a9cc8acea9ba0e1
# bad: [c45859864742dea6cacf84b83b577c3be0744bf1] Merge pull request #11297 from shivaraj-bh/flake-apps-description
git bisect bad c45859864742dea6cacf84b83b577c3be0744bf1
# good: [95fe9f5ba18bb5fe025a06cbba0e18740ad101dd] Fix Meson installation of the Nix CLI
git bisect good 95fe9f5ba18bb5fe025a06cbba0e18740ad101dd
# bad: [06b18cff2021d7cca21ad013fea6da0c43109032] doc: Edit language/operators
git bisect bad 06b18cff2021d7cca21ad013fea6da0c43109032
# good: [66a6eac379cef1da260173cf9decd2e8c184556b] Merge pull request #11280 from NixOS/contributing-attribution
git bisect good 66a6eac379cef1da260173cf9decd2e8c184556b
# good: [b8a09bd167aa488d162de26a49c4f49e6f16d65e] Merge pull request #11073 from obsidiansystems/meson-functional-tests
git bisect good b8a09bd167aa488d162de26a49c4f49e6f16d65e
# bad: [b41cc1a7555e59d5753bf4f8cbbfa9137107d2fe] Make wrapper derivation
git bisect bad b41cc1a7555e59d5753bf4f8cbbfa9137107d2fe
# good: [6f3045c2a225dca7b1ed8a9c9dc27ab50f575900] Remove unit tests from old build system
git bisect good 6f3045c2a225dca7b1ed8a9c9dc27ab50f575900
# first bad commit: [b41cc1a7555e59d5753bf4f8cbbfa9137107d2fe] Make wrapper derivation
bisection script
#/usr/bin/env bash


nix build --system i686-linux . || exit 125

if [ "$(./result/bin/nix eval --raw --impure --expr 'builtins.currentSystem')" = "i686-linux" ]; then
    exit 0
else
    exit 1
fi

Checklist


Add 👍 to issues you find important.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions