Skip to content

Error when following "Provisioning remote machines via SSH" on macos #1120

Description

@yasuiniko

Observations
I've been following the tutorial and everything was able to execute without errors up until I tested the disk layout. Here is the command and the output.

[nix-shell:~/github/remote]$ nix-build -E "((import <nixpkgs> {}).nixos [ ./configuration.nix ]).installTest"
evaluation warning: mdadm: Neither MAILADDR nor PROGRAM has been set. This will cause the `mdmon` service to crash.
error:
       … while evaluating the attribute 'drvPath'
         at /nix/store/iwngzlahnbc2xxq0vrx6zdgb8ip23p53-source/lib/customisation.nix:418:7:
          417|     // {
          418|       drvPath =
             |       ^
          419|         assert condition;while calling the 'derivationStrict' builtin
         at <nix/derivation-internal.nix>:37:12:
           36|
           37|   strict = derivationStrict drvAttrs;
             |            ^
           38|

       … while evaluating the option `testScriptString':

       … while evaluating definitions from `/nix/store/iwngzlahnbc2xxq0vrx6zdgb8ip23p53-source/nixos/lib/testing/testScript.nix':

       … while evaluating definitions from `makeTest parameters':

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

       error: PackageOVMF-202411in /nix/store/iwngzlahnbc2xxq0vrx6zdgb8ip23p53-source/pkgs/applications/virtualization/OVMF/default.nix:269 is marked as broken, refusing to evaluate.

       a) To temporarily allow broken packages, you can use an environment variable
          for a single invocation of the nix tools.

            $ export NIXPKGS_ALLOW_BROKEN=1

          Note: When using `nix shell`, `nix build`, `nix develop`, etc with a flake,
                then pass `--impure` in order to allow use of environment variables.

       b) For `nixos-rebuild` you can set
         { nixpkgs.config.allowBroken = true; }
       in configuration.nix to override this.

       c) For `nix-env`, `nix-build`, `nix-shell` or any other Nix command you can add
         { allowBroken = true; }
       to ~/.config/nixpkgs/config.nix.

Problem
There seems to be an issue with ‘OVMF-202411’ being marked as broken.

Approaches
I don't know how to troubleshoot this as I am new to nix. However I did run the following, to no apparent effect.

nix-channel --add https://nixos.org/channels/nixos-24.05 nixos
nix-channel --update

I also noticed that mynixos.com lists OVMF as "not broken". I wasn't able to find any references to the specific version ‘OVMF-202411’ via google or the in default.nix file listed in the error message.

Willing to help?
I'm happy to help if there's anything I can do.

Priorities

Add 👍 to issues you find important.

Metadata

Metadata

Assignees

No one assigned

    Labels

    siteImprovements to the site infrastructure or content presentation

    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