about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorillustris <rharikrishnan95@gmail.com>2022-09-06 10:10:56 +0530
committerillustris <rharikrishnan95@gmail.com>2022-09-08 08:26:02 +0530
commite7ec55a72d751b1e9583f854f236e266f9cf4d72 (patch)
tree74231ae9e7606819a1de73afd6dc35f2eff960a4 /nixos
parent52cbdf3310149f52010fb141993835cc0ea8b955 (diff)
downloadnixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar.gz
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar.bz2
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar.lz
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar.xz
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.tar.zst
nixlib-e7ec55a72d751b1e9583f854f236e266f9cf4d72.zip
nixos/proxmox-image: fix broken build, reduce build time
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/virtualisation/proxmox-image.nix22
1 files changed, 21 insertions, 1 deletions
diff --git a/nixos/modules/virtualisation/proxmox-image.nix b/nixos/modules/virtualisation/proxmox-image.nix
index 7a6bfef44d28..4fca8ce9e7eb 100644
--- a/nixos/modules/virtualisation/proxmox-image.nix
+++ b/nixos/modules/virtualisation/proxmox-image.nix
@@ -127,8 +127,28 @@ with lib;
       name = "proxmox-${cfg.filenameSuffix}";
       postVM = let
         # Build qemu with PVE's patch that adds support for the VMA format
-        vma = pkgs.qemu_kvm.overrideAttrs ( super: rec {
+        vma = (pkgs.qemu_kvm.override {
+          alsaSupport = false;
+          pulseSupport = false;
+          sdlSupport = false;
+          jackSupport = false;
+          gtkSupport = false;
+          vncSupport = false;
+          smartcardSupport = false;
+          spiceSupport = false;
+          ncursesSupport = false;
+          libiscsiSupport = false;
+          tpmSupport = false;
+          numaSupport = false;
+          seccompSupport = false;
+          guestAgentSupport = false;
+        }).overrideAttrs ( super: rec {
 
+          version = "7.0.0";
+          src = pkgs.fetchurl {
+            url= "https://download.qemu.org/qemu-${version}.tar.xz";
+            sha256 = "sha256-9rN1x5UfcoQCeYsLqrsthkeMpT1Eztvvq74cRr9G+Dk=";
+          };
           patches = [
             (pkgs.fetchpatch {
               url =