nixpkgs/nixos/lib/testing/interactive.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
428 B
Nix
Raw Normal View History

{ config, lib, moduleType, hostPkgs, ... }:
let
inherit (lib) mkOption types;
in
{
options = {
interactive = mkOption {
description = "All the same options, but configured for interactive use.";
type = moduleType;
};
};
config = {
interactive.qemu.package = hostPkgs.qemu;
interactive.extraDriverArgs = [ "--interactive" ];
passthru.driverInteractive = config.interactive.driver;
};
}