From eb29b43033060111bb8e359c4c45b20fc5b48f72 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Sun, 8 Sep 2024 18:42:31 +0300 Subject: [PATCH] Vm : Add some extra params. --- module/Vm.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/module/Vm.nix b/module/Vm.nix index 0004558..a4573fe 100644 --- a/module/Vm.nix +++ b/module/Vm.nix @@ -1,4 +1,5 @@ { lib, ... }: { + # SEE: https://github.com/name-snrl/nixos-configuration/blob/e7f6b0f664dbee82e3bf3e85a98cdc3088abe602/modules/nixos/profiles/system/vm-config.nix#L1 virtualisation.vmVariant = { module = { autoupdate.enable = lib.mkForce false; @@ -6,14 +7,20 @@ keyd.enable = lib.mkForce false; }; virtualisation = { - memorySize = 4 * 1024; - diskSize = 20 * 1024; + # diskSize = 20 * 1024; cores = 4; + diskImage = null; + memorySize = 4 * 1024; + msize = 1024 * 1024; restrictNetwork = false; resolution = { x = 1280; y = 720; }; + sharedDirectories.experiments = { + source = "$HOME"; + target = "/mnt/home"; + }; }; }; }