summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2024-06-25 20:52:50 +0200
committerAlan Pearce2024-06-25 20:52:50 +0200
commit3dc6940449d3061ce510ab65dde18ad593102a4c (patch)
tree47e7dab09cf09c48fa46c885dda556b9258d3ce2 /system
parentafb53f43cc5c8b9740e106410f7bc032f74dff8f (diff)
downloadnixfiles-3dc6940449d3061ce510ab65dde18ad593102a4c.tar.lz
nixfiles-3dc6940449d3061ce510ab65dde18ad593102a4c.tar.zst
nixfiles-3dc6940449d3061ce510ab65dde18ad593102a4c.zip
prefect: configure nixos VM variant
Diffstat (limited to 'system')
-rw-r--r--system/prefect.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/prefect.nix b/system/prefect.nix
index 864ccc3f..801692e3 100644
--- a/system/prefect.nix
+++ b/system/prefect.nix
@@ -31,6 +31,26 @@
     <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 = ''