summary refs log tree commit diff
path: root/nixos/lib/testing/interactive.nix
blob: fd4d481a3f82e7d073a26684371a3e80f3b60bba (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ 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;
  };
}