Enable settings for both vms and vms with bootloaders
This commit is contained in:
parent
fbd09f50a2
commit
d5023ed7ad
1 changed files with 15 additions and 9 deletions
|
@ -19,18 +19,24 @@
|
||||||
machineConfig
|
machineConfig
|
||||||
];
|
];
|
||||||
|
|
||||||
virtualisation.vmVariant = {
|
virtualisation =
|
||||||
virtualisation.qemu.options = [
|
let
|
||||||
"-display sdl"
|
config = {
|
||||||
];
|
virtualisation.qemu.options = [
|
||||||
|
"-display sdl"
|
||||||
|
];
|
||||||
|
|
||||||
virtualisation.sharedDirectories = {
|
virtualisation.sharedDirectories = {
|
||||||
keys = {
|
keys = {
|
||||||
source = "/etc/ssh";
|
source = "/etc/ssh";
|
||||||
target = "/etc/ssh";
|
target = "/etc/ssh";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
in {
|
||||||
|
vmVariant = config;
|
||||||
|
vmVariantWithBootLoader = config;
|
||||||
};
|
};
|
||||||
};
|
|
||||||
|
|
||||||
# Networking
|
# Networking
|
||||||
networking.hostName = name;
|
networking.hostName = name;
|
||||||
|
|
Loading…
Reference in a new issue