Skip to content

error: attribute 'buildDTBs' missing #190

Description

@timka

Looks like NixOS/nixpkgs@31d1d80 introduces a change that breaks kernel-related stuff in snowflake lib

[user@snowflakeos:/etc/nixos]$ sudo nixos-rebuild switch --flake . 
evaluation warning: fold has been deprecated, use foldr instead
building the system configuration...
evaluation warning: fold has been deprecated, use foldr instead
error:
       … while calling the 'head' builtin
         at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/lib/attrsets.nix:1719:13:
         1718|           if length values == 1 || pred here (elemAt values 1) (head values) then
         1719|             head values
             |             ^
         1720|           else

       … while evaluating the attribute 'value'
         at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/lib/modules.nix:1149:7:
         1148|     // {
         1149|       value = addErrorContext "while evaluating the option `${showOption loc}':" value;
             |       ^
         1150|       inherit (res.defsFinal') highestPrio;

       … while evaluating the option `system.build.toplevel':

       … while evaluating definitions from `/nix/store/7hlsbdxjq2mgczhlipabzn52sarzx0yd-source/nixos/modules/system/activation/top-level.nix':

       … while evaluating the option `assertions':

       … while evaluating definitions from `/nix/store/7hlsbdxjq2mgczhlipabzn52sarzx0yd-source/nixos/modules/hardware/device-tree.nix':

       … while evaluating the option `hardware.deviceTree.enable':

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

       error: attribute 'buildDTBs' missing
       at «github:nixos/nixpkgs/753cc8a3a87467296ddd1fa93f0cc3e81120ee46?narHash=sha256-KesHgItiZPgGX740axSiQLcIQ8D24MDqNpkKYWIek8k%3D»/nixos/modules/hardware/device-tree.nix:126:19:
          125|       enable = lib.mkOption {
          126|         default = config.boot.kernelPackages.kernel.buildDTBs;
             |                   ^
          127|         defaultText = lib.literalExpression "config.boot.kernelPackages.kernel.buildDTBs";
Command 'nix --extra-experimental-features 'nix-command flakes' build --print-out-paths '.#nixosConfigurations."snowflakeos".config.system.build.toplevel' --no-link' returned non-zero exit status 1.


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions