Add flake VM

This commit is contained in:
muon 2024-07-30 12:03:37 +00:00
parent 53508e59c5
commit b7d42c340b
4 changed files with 72 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ config, lib, pkgs, modulesPath, ... }: {
imports =
[ (modulesPath + "/profiles/qemu-guest.nix")
];
networking.useDHCP = lib.mkForce true;
virtualisation.vmVariant = {
# following configuration is added only when building VM with build-vm
virtualisation = {
memorySize = 2048; # Use 2048MiB memory.
cores = 3;
graphics = false;
};
};
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}