all repos — nixfiles @ 3dc6940449d3061ce510ab65dde18ad593102a4c

System and user configuration, managed by nix and home-manager

prefect: configure nixos VM variant
Alan Pearce alan@alanpearce.eu
Tue, 25 Jun 2024 20:52:50 +0200
commit

3dc6940449d3061ce510ab65dde18ad593102a4c

parent

afb53f43cc5c8b9740e106410f7bc032f74dff8f

1 files changed, 20 insertions(+), 0 deletions(-)

jump to
M system/prefect.nixsystem/prefect.nix
@@ -31,6 +31,26 @@ <nixos-hardware/common/pc>     <nixos-hardware/common/gpu/nvidia>
   ];
 
+  virtualisation.vmVariant = {
+    disabledModules = [
+      ./settings/hardware/nvidia-gpu.nix
+      ./settings/hardware/bare-metal.nix
+      ./settings/gaming.nix
+      ./settings/user-interface.nix
+      ./settings/programs/kde.nix
+      <nixos-hardware/common/cpu/amd>
+      <nixos-hardware/common/cpu/amd/pstate.nix>
+      <nixos-hardware/common/pc/ssd>
+      <nixos-hardware/common/pc>
+      <nixos-hardware/common/gpu/nvidia>
+    ];
+    services.qemuGuest.enable = true;
+    virtualisation = {
+      memorySize = 4096;
+      cores = 4;
+    };
+  };
+
   nixpkgs.hostPlatform = "x86_64-linux";
 
   services.xserver.screenSection = ''