nixos: Add initial QEMU-based VM module

This commit is contained in:
2022-05-02 20:40:11 +01:00
parent 5290c78b06
commit 39f8e65f74
5 changed files with 133 additions and 1 deletions

View File

@@ -37,6 +37,12 @@
networking.bridge = "virtual";
};
};
vms = {
instances.test = {
networks.virtual = {};
vga = "none";
};
};
};
fileSystems = {
@@ -82,6 +88,10 @@
};
#systemd.services.systemd-networkd.environment.SYSTEMD_LOG_LEVEL = "debug";
virtualisation = {
cores = 8;
memorySize = 8192;
};
};
};
}