From 1c46f39e6d54b8fac07a7e2dee201c29d2a7fb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Tue, 9 Apr 2024 14:50:45 +0200 Subject: [PATCH] 283 current 1970-01-01 01:00:00 23.11.20240406.e38d7cb 6.1.84 * --- hosts/MaxNixosLaptop/configuration.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/hosts/MaxNixosLaptop/configuration.nix b/hosts/MaxNixosLaptop/configuration.nix index 96e3dc1..327048a 100644 --- a/hosts/MaxNixosLaptop/configuration.nix +++ b/hosts/MaxNixosLaptop/configuration.nix @@ -81,7 +81,7 @@ users.users.max = { isNormalUser = true; description = "Max Känner"; - extraGroups = ["networkmanager" "wheel"]; + extraGroups = ["networkmanager" "wheel" "libvirtd"]; shell = pkgs.zsh; }; @@ -154,6 +154,24 @@ enable = true; defaultNetwork.settings.dns_enabled = true; }; + libvirtd = { + enable = true; + qemu = { + package = pkgs.qemu_kvm; + runAsRoot = true; + swtpm.enable = true; + ovmf = { + enable = true; + packages = [ + (pkgs.unstable.OVMF.override { + secureBoot = true; + tpmSupport = true; + }) + .fd + ]; + }; + }; + }; }; # List services that you want to enable: