Enable settings for both vms and vms with bootloaders

This commit is contained in:
Manuel Thalmann 2024-04-09 23:10:19 +02:00
parent fbd09f50a2
commit d5023ed7ad

View file

@ -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;