test-vm: Add host test-vm

This commit is contained in:
Alexander Heldt
2024-07-30 20:06:32 +02:00
parent 7c6f961b1f
commit 750dd941b9
3 changed files with 39 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@@ -0,0 +1,2 @@
*.qcow2
result

View File

@@ -68,6 +68,12 @@
./hosts/tadpole/home.nix ./hosts/tadpole/home.nix
]; ];
}; };
test-vm = inputs.nixpkgs.lib.nixosSystem {
system = "x86_64-linux";
specialArgs = { inherit inputs; };
modules = [ ./hosts/test-vm/configuration.nix ];
};
}; };
}; };
} }

View File

@@ -0,0 +1,31 @@
{ pkgs, ... }:
{
imports = [];
config = {
boot.kernelPackages = pkgs.linuxPackages_latest;
networking.hostName = "test-vm";
mod = {};
users.users.a = {
isNormalUser = true;
extraGroups = [ "wheel" ];
password = "a";
};
virtualisation.vmVariant = {
# following configuration is added only when building VM with build-vm
virtualisation = {
memorySize = 2048;
cores = 3;
graphics = false;
};
};
environment.systemPackages = [];
system.stateVersion = "24.05";
};
}