Vm : Add some extra params.

This commit is contained in:
Dmitry Voronin 2024-09-08 18:42:31 +03:00
parent 73f3cdc3dc
commit eb29b43033
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k

View file

@ -1,4 +1,5 @@
{ lib, ... }: { { lib, ... }: {
# SEE: https://github.com/name-snrl/nixos-configuration/blob/e7f6b0f664dbee82e3bf3e85a98cdc3088abe602/modules/nixos/profiles/system/vm-config.nix#L1
virtualisation.vmVariant = { virtualisation.vmVariant = {
module = { module = {
autoupdate.enable = lib.mkForce false; autoupdate.enable = lib.mkForce false;
@ -6,14 +7,20 @@
keyd.enable = lib.mkForce false; keyd.enable = lib.mkForce false;
}; };
virtualisation = { virtualisation = {
memorySize = 4 * 1024; # diskSize = 20 * 1024;
diskSize = 20 * 1024;
cores = 4; cores = 4;
diskImage = null;
memorySize = 4 * 1024;
msize = 1024 * 1024;
restrictNetwork = false; restrictNetwork = false;
resolution = { resolution = {
x = 1280; x = 1280;
y = 720; y = 720;
}; };
sharedDirectories.experiments = {
source = "$HOME";
target = "/mnt/home";
};
}; };
}; };
} }