Skip to content

microvm.nix can't be processed by nixos-search's flake-info anymore #443

@raboof

Description

@raboof
$ nix run github:nixos/nixos-search#flake-info -- --json flake github:microvm-nix/microvm.nixwarning: ignoring untrusted flake configuration setting 'extra-substituters'.
Pass '--accept-flake-config' to trust it
warning: ignoring untrusted flake configuration setting 'extra-trusted-public-keys'.
Pass '--accept-flake-config' to trust it
[2025-12-09T08:39:53Z ERROR command_run] command 'nix eval --json --no-allow-import-from-derivation --no-write-lock-file -f '/nix/store/qs1mwb04ia7jnd3k61fk52w0n9qc20l9-flake-info/assets/commands/flake_info.nix' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz --override-flake input-flake github:microvm-nix/microvm.nix --argstr flake github:microvm-nix/microvm.nix all' failed: exit status: 1
    stdout:
    
    stderr:
    unpacking 'https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz' into the Git cache...
    error:
           … while evaluating a branch condition
             at /nix/store/qs1mwb04ia7jnd3k61fk52w0n9qc20l9-flake-info/assets/commands/flake_info.nix:221:5:
              220|     # are multiple modules
              221|     if nixosModulesOpts != [ ] then nixosModulesOpts else nixosModuleOpts;
                 |     ^
              222|
    
           … while calling the 'concatLists' builtin
             at /nix/store/qs1mwb04ia7jnd3k61fk52w0n9qc20l9-flake-info/assets/commands/flake_info.nix:201:26:
              200|     let
              201|       nixosModulesOpts = builtins.concatLists (
                 |                          ^
              202|         lib.mapAttrsToList (
    
           … while evaluating the option `microvm.firecracker.extraConfig._module.freeformType':
    
           … while evaluating definitions from `/nix/store/mbn72fj0ng0yahrk24dl9zhmp2ahjg2s-source/nixos-modules/microvm/options.nix':
    
           … while evaluating the module argument `pkgs' in "/nix/store/mbn72fj0ng0yahrk24dl9zhmp2ahjg2s-source/nixos-modules/microvm/options.nix":
    
           … noting that argument `pkgs` is not externally provided, so querying `_module.args` instead, requiring `config`
    
           (stack trace truncated; use '--show-trace' to show the full, detailed trace)
    
           error: attribute 'pkgs' missing
           at /nix/store/9rf7z9hhnxqvbf5i04labfsxill2zhyl-source/lib/modules.nix:685:13:
              684|             "noting that argument `${name}` is not externally provided, so querying `_module.args` instead, requiring `config`"
              685|             config._module.args.${name}
                 |             ^
              686|           )
    
Error: Getting flake info caused an error: Failed to gather information about github:microvm-nix/microvm.nix

Caused by:
    command 'nix eval --json --no-allow-import-from-derivation --no-write-lock-file -f '/nix/store/qs1mwb04ia7jnd3k61fk52w0n9qc20l9-flake-info/assets/commands/flake_info.nix' -I nixpkgs=https://github.com/NixOS/nixpkgs/archive/refs/heads/nixpkgs-unstable.tar.gz --override-flake input-flake github:microvm-nix/microvm.nix --argstr flake github:microvm-nix/microvm.nix all' failed: exit status: 1

This may very well be a problem in flake-info rather than in microvm.nix (possibly NixOS/nixos-search#902, see also NixOS/nixos-search#1115), but flake-info is very low on maintainers, and you asked to be pinged in flakes/manual.toml, so here you go :) - any help much appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions