From 48f9a7ad02dae8779824336e7ed5142b56cbd809 Mon Sep 17 00:00:00 2001 From: k Date: Sun, 8 Jun 2025 19:08:49 -0400 Subject: [PATCH] add libvirt --- hosts/laptop/configuration.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/hosts/laptop/configuration.nix b/hosts/laptop/configuration.nix index c72fd29..362580d 100644 --- a/hosts/laptop/configuration.nix +++ b/hosts/laptop/configuration.nix @@ -96,6 +96,24 @@ thermald.enable = true; }; + 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 + ]; + }; + }; + }; + stylix = { enable = true; autoEnable = true; @@ -158,7 +176,7 @@ users.users.k = { isNormalUser = true; description = "k"; - extraGroups = ["networkmanager" "wheel"]; + extraGroups = ["networkmanager" "wheel" "cdrom" "libvirtd"]; packages = with pkgs; [nushell]; shell = pkgs.nushell; };