diff --git a/common/configuration.nix b/common/configuration.nix index fc22545..a384e13 100644 --- a/common/configuration.nix +++ b/common/configuration.nix @@ -40,6 +40,26 @@ programs.hyprland.enable = true; programs.zsh.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 + ]; + }; + }; + }; + systemd.services.libvirtd.wantedBy = lib.mkForce [ ]; + systemd.services.libvirt-guests.wantedBy = lib.mkForce [ ]; + users.users.ahurac = { isNormalUser = true; extraGroups = [ "wheel" "networkmanager" ];