From ff1b655d3cce6d7f688982228061ac8a813fba3d Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Mon, 2 Dec 2024 14:34:37 -0600 Subject: [PATCH] modularize virtualization settings --- sys/modules/default.nix | 1 + sys/modules/virtualisation.nix | 1 - sys/platforms/posixlycorrect/default.nix | 1 + 3 files changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/modules/default.nix b/sys/modules/default.nix index 49af04c..32dae85 100644 --- a/sys/modules/default.nix +++ b/sys/modules/default.nix @@ -9,5 +9,6 @@ ./yubikey.nix ./audio.nix ./graphics.nix + ./virtualisation.nix ]; } diff --git a/sys/modules/virtualisation.nix b/sys/modules/virtualisation.nix index 0ff9627..b64741e 100644 --- a/sys/modules/virtualisation.nix +++ b/sys/modules/virtualisation.nix @@ -15,7 +15,6 @@ in { virtualisation.libvirtd.qemu.ovmf.enable = true; virtualisation.libvirtd.qemu.ovmf.packages = [pkgs.OVMFFull.fd]; virtualisation.libvirtd.enable = true; - programs.dconf.enable = true; # boot.kernelModules = [ "vfio" "vfio_iommu_type1" "vfio_pci" "vfio_virqfd" ]; # boot.kernelParams = [ "amd_iommu=on" "iommu=pt" "vfio-pci.ids=1002:699f,1002:aae0" "video=efifb:off" ]; virtualisation.libvirtd.onBoot = "start"; diff --git a/sys/platforms/posixlycorrect/default.nix b/sys/platforms/posixlycorrect/default.nix index f1974a5..90f6a35 100644 --- a/sys/platforms/posixlycorrect/default.nix +++ b/sys/platforms/posixlycorrect/default.nix @@ -18,6 +18,7 @@ yubikey.enable = true; audio.enable = true; graphics.enable = true; + virtualisation.enable = true; }; # Use the systemd-boot EFI boot loader.