From 96667fb3d5636e7ecf40eb713783085fbe32fd41 Mon Sep 17 00:00:00 2001 From: Thilo Billerbeck <thilo.billerbeck@officerent.de> Date: Sat, 26 Apr 2025 03:18:42 +0200 Subject: [PATCH] add virt to pc --- configs/thilo-pc/nixos.nix | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/configs/thilo-pc/nixos.nix b/configs/thilo-pc/nixos.nix index a90b8a4..0174db6 100644 --- a/configs/thilo-pc/nixos.nix +++ b/configs/thilo-pc/nixos.nix @@ -201,4 +201,16 @@ enable = true; domains = [ "~." ]; }; + + virtualisation.libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + }; + }; + }; }