mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01:00
19 lines
428 B
Nix
19 lines
428 B
Nix
|
{ 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;
|
||
|
};
|
||
|
}
|