Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
moduleType,
|
|
hostPkgs,
|
|
...
|
|
}:
|
|
let
|
|
inherit (lib) mkOption types;
|
|
in
|
|
{
|
|
options = {
|
|
interactive = mkOption {
|
|
description = ''
|
|
Tests [can be run interactively](#sec-running-nixos-tests-interactively)
|
|
using the program in the test derivation's `.driverInteractive` attribute.
|
|
|
|
When they are, the configuration will include anything set in this submodule.
|
|
|
|
You can set any top-level test option here.
|
|
|
|
Example test module:
|
|
|
|
```nix
|
|
{ config, lib, ... }: {
|
|
|
|
nodes.rabbitmq = {
|
|
services.rabbitmq.enable = true;
|
|
};
|
|
|
|
# When running interactively ...
|
|
interactive.nodes.rabbitmq = {
|
|
# ... enable the web ui.
|
|
services.rabbitmq.managementPlugin.enable = true;
|
|
};
|
|
}
|
|
```
|
|
|
|
For details, see the section about [running tests interactively](#sec-running-nixos-tests-interactively).
|
|
'';
|
|
type = moduleType;
|
|
visible = "shallow";
|
|
};
|
|
};
|
|
|
|
config = {
|
|
interactive.qemu.package = hostPkgs.qemu;
|
|
interactive.extraDriverArgs = [ "--interactive" ];
|
|
passthru.driverInteractive = config.interactive.driver;
|
|
};
|
|
}
|