test-vm: Add host test-vm
This commit is contained in:
31
hosts/test-vm/configuration.nix
Normal file
31
hosts/test-vm/configuration.nix
Normal 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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user