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