From 6dcd2a370a8065ef6e4dbc6e7a0b2dbfd4b40d47 Mon Sep 17 00:00:00 2001 From: "Else, Someone" Date: Thu, 9 Oct 2025 20:55:48 +0300 Subject: [PATCH] vmapp-demo: copypaste-ability --- profiles/vmapp-demo.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/profiles/vmapp-demo.nix b/profiles/vmapp-demo.nix index 67078aa..2824b46 100644 --- a/profiles/vmapp-demo.nix +++ b/profiles/vmapp-demo.nix @@ -8,6 +8,7 @@ }: let + inherit (config._module.args) inputs; cfg = config.vmapps; desktopItems' = pkgs.callPackage ../pkgs/desktopAdapters.nix { }; desktopItems = desktopItems'.overrideScope ( @@ -28,8 +29,8 @@ let modules = extraModules ++ [ { microvm.hypervisor = "cloud-hypervisor"; - microvm.hotpluggedMem = 128; - microvm.hotplugMem = 512; + microvm.hotpluggedMem = lib.mkDefault 128; + microvm.hotplugMem = lib.mkDefault 512; microvm.shares = [ { source = "send"; @@ -50,10 +51,10 @@ let ./uvms-guest.nix ./vsock-connect-guest.nix (modulesPath + "/profiles/minimal.nix") - (config._module.args.inputs."microvm.nix" + "/nixos-modules/microvm") + (inputs."microvm.nix" + "/nixos-modules/microvm") ]; specialArgs = { - inherit (config._module.args) inputs; + inherit inputs; }; }; runner = evaluated.config.microvm.declaredRunner;