Allow adding custom options to individual vms
This commit is contained in:
parent
591ba4e96e
commit
0480f0d4a4
1 changed files with 49 additions and 62 deletions
|
@ -1,5 +1,13 @@
|
|||
{ config, lib, options, pkgs, ... }: {
|
||||
options = {};
|
||||
{ config, lib, options, pkgs, ... }:
|
||||
let
|
||||
vmOptions = { };
|
||||
in {
|
||||
options = {
|
||||
virtualisation = {
|
||||
vmVariant = vmOptions;
|
||||
vmVariantWithBootLoader = vmOptions;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
# Replace native `qemu` with `remote-viewer`
|
||||
|
@ -41,26 +49,5 @@
|
|||
paths = [ wrapped ];
|
||||
});
|
||||
};
|
||||
|
||||
virtualisation =
|
||||
let vmConfig = {
|
||||
boot.loader.efi.efiSysMountPoint = lib.mkForce "/boot";
|
||||
|
||||
virtualisation = {
|
||||
qemu.options = [
|
||||
"-display sdl"
|
||||
];
|
||||
|
||||
sharedDirectories = {
|
||||
hostKeys = {
|
||||
source = "/etc/ssh";
|
||||
target = "/etc/ssh";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
vmVariantWithBootLoader = vmConfig;
|
||||
};
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue