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
|
||||
];
|
||||
|
||||
virtualisation.vmVariant = {
|
||||
virtualisation.qemu.options = [
|
||||
"-display sdl"
|
||||
];
|
||||
virtualisation =
|
||||
let
|
||||
config = {
|
||||
virtualisation.qemu.options = [
|
||||
"-display sdl"
|
||||
];
|
||||
|
||||
virtualisation.sharedDirectories = {
|
||||
keys = {
|
||||
source = "/etc/ssh";
|
||||
target = "/etc/ssh";
|
||||
virtualisation.sharedDirectories = {
|
||||
keys = {
|
||||
source = "/etc/ssh";
|
||||
target = "/etc/ssh";
|
||||
};
|
||||
};
|
||||
};
|
||||
in {
|
||||
vmVariant = config;
|
||||
vmVariantWithBootLoader = config;
|
||||
};
|
||||
};
|
||||
|
||||
# Networking
|
||||
networking.hostName = name;
|
||||
|
|
Loading…
Reference in a new issue