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