Lix latest NixOS module revision fails to build #924

Closed
opened 2025-07-21 10:56:53 +00:00 by dvalnn · 1 comment

Describe the bug

Lix seemingly fails to build during nixos-rebuild.

~/nixos: nh os switch
> Building NixOS configuration
fetching git input 'git+file:///home/dvalinn/nixos'
error:
        while calling the 'head' builtin
         at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/attrsets.nix:1534:13:
         1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1534|             head values
             |             ^
         1535|           else

        while evaluating the attribute 'value'
         at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/modules.nix:1086:7:
         1085|     // {
         1086|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1087|       inherit (res.defsFinal') highestPrio;

       (stack trace truncated; use '--show-trace' to show the full trace)

       error: separateDebugInfo = true in lix requires __structuredAttrs if {dis,}allowedRequisites or {dis,}allowedReferences is set
┏━ 1 Errors:
 error:
         while calling the 'head' builtin
          at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/attrsets.nix:1534:13:
          1533|           if length values == 1 || pred here (elemAt values 1) (head values) then
          1534|             head values
              |             ^
          1535|           else

         while evaluating the attribute 'value'
          at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/modules.nix:1086:7:
          1085|     // {
          1086|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
              |       ^
          1087|       inherit (res.defsFinal') highestPrio;

        (stack trace truncated; use '--show-trace' to show the full trace)

        error: separateDebugInfo = true in lix requires __structuredAttrs if {dis,}allowedRequisites or {dis,}allowedReferences is set
┣━━━
┗━   Exited with 1 errors reported by nix at 11:43:33 after 1s
Error:
   0: Command exited with status Exited(1)

Location:
   src/commands.rs:261

Steps To Reproduce

NixOs flake.lock to the following revisions:

• Updated input 'home-manager':
    'github:nix-community/home-manager/1e54837569e0b80797c47be4720fab19e0db1616' (2025-07-14)
  → 'github:nix-community/home-manager/13a83d1b6545b7f0e8f7689bad62e7a3b1d63771' (2025-07-21)
• Updated input 'lix-module/lix':
    'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/f3a7bbe5f8d1a8504ddb6362d50106904523e440.tar.gz?narHash=sha256-Jzm3KPZ2gL%2B0Nl3Mw/2E0B3vqDDi1Xt5%2B9VCXghUDZ8%3D&rev=f3a7bbe5f8d1a8504ddb6362d50106904523e440' (2025-06-29)
  → 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/1d7368585eebaa2c4bdbcb88fe600cfb2239b2c6.tar.gz?narHash=sha256-J4ycLoXHPsoBoQtEXFCelL4xlq5pT8U9tNWNKm43%2BYI%3D&rev=1d7368585eebaa2c4bdbcb88fe600cfb2239b2c6' (2025-06-29)
• Updated input 'nixpkgs':
    'github:nixos/nixpkgs/9807714d6944a957c2e036f84b0ff8caf9930bc0' (2025-07-08)
  → 'github:nixos/nixpkgs/c87b95e25065c028d31a94f06a62927d18763fdf' (2025-07-19)
• Updated input 'stylix':
    'github:danth/stylix/d683e35fa5ec8bbfd45d52e4b53c7b91f7b38d06' (2025-07-13)
  → 'github:danth/stylix/c32c82e460b9022c4c20cf51014db1665e866ffb' (2025-07-20)

  1. run nixos-rebuild

Expected behavior

System update succeeds

nix --version output

nix (Lix, like Nix) 2.93.2-pre20250629-f3a7bbe
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/dvalinn/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/dvalinn/.nix-profile/etc/xdg/nix/nix.conf:/home/dvalinn/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/dvalinn/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/dvalinn/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/fqr8b622ld52fifi77h3bgamp1b5xzy9-gnome-settings-daemon-48.1/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/65abdr053kysmyngbzghx9pmd1qgvpl0-lix-2.93.2-pre20250629-f3a7bbe/share

Additional context

I have been running into this problem for some days now, blocking system updates.

## Describe the bug Lix seemingly fails to build during nixos-rebuild. ```nix ~/nixos: nh os switch > Building NixOS configuration fetching git input 'git+file:///home/dvalinn/nixos' error: … while calling the 'head' builtin at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/attrsets.nix:1534:13: 1533| if length values == 1 || pred here (elemAt values 1) (head values) then 1534| head values | ^ 1535| else … while evaluating the attribute 'value' at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/modules.nix:1086:7: 1085| // { 1086| value = addErrorContext "while evaluating the option `${showOption loc}':" value; | ^ 1087| inherit (res.defsFinal') highestPrio; (stack trace truncated; use '--show-trace' to show the full trace) error: separateDebugInfo = true in lix requires __structuredAttrs if {dis,}allowedRequisites or {dis,}allowedReferences is set ┏━ 1 Errors: ┃ error: ┃ … while calling the 'head' builtin ┃ at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/attrsets.nix:1534:13: ┃ 1533| if length values == 1 || pred here (elemAt values 1) (head values) then ┃ 1534| head values ┃ | ^ ┃ 1535| else ┃ ┃ … while evaluating the attribute 'value' ┃ at /nix/store/182c2qj20sfspzxcshd6p051qdx3mx5j-source/lib/modules.nix:1086:7: ┃ 1085| // { ┃ 1086| value = addErrorContext "while evaluating the option `${showOption loc}':" value; ┃ | ^ ┃ 1087| inherit (res.defsFinal') highestPrio; ┃ ┃ (stack trace truncated; use '--show-trace' to show the full trace) ┃ ┃ error: separateDebugInfo = true in lix requires __structuredAttrs if {dis,}allowedRequisites or {dis,}allowedReferences is set ┣━━━ ┗━ ∑ ⚠ Exited with 1 errors reported by nix at 11:43:33 after 1s Error: 0: Command exited with status Exited(1) Location: src/commands.rs:261 ``` ## Steps To Reproduce 1. NixOs flake.lock to the following revisions: ``` • Updated input 'home-manager': 'github:nix-community/home-manager/1e54837569e0b80797c47be4720fab19e0db1616' (2025-07-14) → 'github:nix-community/home-manager/13a83d1b6545b7f0e8f7689bad62e7a3b1d63771' (2025-07-21) • Updated input 'lix-module/lix': 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/f3a7bbe5f8d1a8504ddb6362d50106904523e440.tar.gz?narHash=sha256-Jzm3KPZ2gL%2B0Nl3Mw/2E0B3vqDDi1Xt5%2B9VCXghUDZ8%3D&rev=f3a7bbe5f8d1a8504ddb6362d50106904523e440' (2025-06-29) → 'https://git.lix.systems/api/v1/repos/lix-project/lix/archive/1d7368585eebaa2c4bdbcb88fe600cfb2239b2c6.tar.gz?narHash=sha256-J4ycLoXHPsoBoQtEXFCelL4xlq5pT8U9tNWNKm43%2BYI%3D&rev=1d7368585eebaa2c4bdbcb88fe600cfb2239b2c6' (2025-06-29) • Updated input 'nixpkgs': 'github:nixos/nixpkgs/9807714d6944a957c2e036f84b0ff8caf9930bc0' (2025-07-08) → 'github:nixos/nixpkgs/c87b95e25065c028d31a94f06a62927d18763fdf' (2025-07-19) • Updated input 'stylix': 'github:danth/stylix/d683e35fa5ec8bbfd45d52e4b53c7b91f7b38d06' (2025-07-13) → 'github:danth/stylix/c32c82e460b9022c4c20cf51014db1665e866ffb' (2025-07-20) ``` 2. run nixos-rebuild ## Expected behavior System update succeeds ## `nix --version` output ```nix nix (Lix, like Nix) 2.93.2-pre20250629-f3a7bbe 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/dvalinn/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/dvalinn/.nix-profile/etc/xdg/nix/nix.conf:/home/dvalinn/.local/state/nix/profile/etc/xdg/nix/nix.conf:/home/dvalinn/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/dvalinn/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf:/nix/store/fqr8b622ld52fifi77h3bgamp1b5xzy9-gnome-settings-daemon-48.1/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/65abdr053kysmyngbzghx9pmd1qgvpl0-lix-2.93.2-pre20250629-f3a7bbe/share ``` ## Additional context I have been running into this problem for some days now, blocking system updates.
Owner

Duplicate of #917 a fix should happen shortly hopefully.

Duplicate of #917 a fix should happen shortly hopefully.
raito closed this issue 2025-07-21 11:01:39 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#924
No description provided.