From d20f4b946dfb1c2e09fb598772c442eeaef0dad2 Mon Sep 17 00:00:00 2001 From: caem Date: Fri, 28 Jun 2024 00:52:58 +0200 Subject: [PATCH] Fix some stupid --- flake.lock | 6 +++--- .../workstation/hardware-configuration.nix | 2 +- users/hu/packages/virt-manager.nix | 18 ++---------------- 3 files changed, 6 insertions(+), 20 deletions(-) diff --git a/flake.lock b/flake.lock index 864f0f6..553b866 100644 --- a/flake.lock +++ b/flake.lock @@ -124,11 +124,11 @@ }, "nur": { "locked": { - "lastModified": 1719488730, - "narHash": "sha256-4LTpvjM/S6DMxl9Kb35tQ5Y70XVTULMTM5UprsngFMg=", + "lastModified": 1719517516, + "narHash": "sha256-bwjxMNXHkyh8yS7i6ZCwUAjs7ANzPromZx+ySqhJqv4=", "owner": "nix-community", "repo": "NUR", - "rev": "c2667e57412f53b38d19386ebf7f6f564e28febe", + "rev": "d4476920ba0f03b76443950c3d438cdd81f56a12", "type": "github" }, "original": { diff --git a/machines/workstation/hardware-configuration.nix b/machines/workstation/hardware-configuration.nix index c574bd2..18b8310 100644 --- a/machines/workstation/hardware-configuration.nix +++ b/machines/workstation/hardware-configuration.nix @@ -37,7 +37,7 @@ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" "kvm-intel" ]; + boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; boot.extraModprobeConfig = "options kvm_amd nested=1"; boot.kernelParams = [ diff --git a/users/hu/packages/virt-manager.nix b/users/hu/packages/virt-manager.nix index 45c26c0..492d1aa 100644 --- a/users/hu/packages/virt-manager.nix +++ b/users/hu/packages/virt-manager.nix @@ -1,21 +1,7 @@ -{ pkgs, ... }: +{ ... }: { - virtualisation.libvirtd = { - enable = true; - qemu = { - package = pkgs.qemu_kvm; - runAsRoot = true; - swtpm.enable = true; - ovmf = { - enable = true; - packages = [(pkgs.OVMF.override { - secureBoot = true; - tpmSupport = true; - }).fd]; - }; - }; - }; + virtualisation.libvirtd.enable = true; programs.virt-manager.enable = true; }