From 9853f29dd9131ec296a8caf35b1c16b95dd73856 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Wed, 17 Aug 2022 04:00:50 -0600 Subject: [PATCH] =?UTF-8?q?activa=20virtualizaci=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- base/default.nix | 11 ++++++++++- home/path.nix | 2 +- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/base/default.nix b/base/default.nix index a740ac0..a043587 100644 --- a/base/default.nix +++ b/base/default.nix @@ -57,7 +57,7 @@ uid = 1002; group = "fabian"; shell = pkgs.zsh; - extraGroups = [ "users" "wheel" "networkmanager" "dialout" ]; + extraGroups = [ "users" "wheel" "networkmanager" "dialout" "libvirtd" ]; }; groups.fabian.gid = 1002; }; @@ -81,6 +81,15 @@ nixpkgs.config.allowUnfree = true; + virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm; + virtualisation.libvirtd.qemu.ovmf.enable = true; + virtualisation.libvirtd.qemu.ovmf.package = pkgs.OVMFFull; + 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"; + nix = { package = pkgs.nixFlakes; extraOptions = '' diff --git a/home/path.nix b/home/path.nix index 7f222b8..2d52163 100644 --- a/home/path.nix +++ b/home/path.nix @@ -45,7 +45,7 @@ pkgs: with pkgs; [ usbutils units unzip - virtualbox + virt-manager vlc xclip xournalpp