From 2c36da019d4f70fd03014062f30135d421c5da4e Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 24 Dec 2024 18:57:09 +0200 Subject: [PATCH] Enabled KVM/QEMU, might use it to run some sandboxed windows machines --- hosts/laptop-nixos/configuration.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hosts/laptop-nixos/configuration.nix b/hosts/laptop-nixos/configuration.nix index 3ce7d43..6e2be58 100644 --- a/hosts/laptop-nixos/configuration.nix +++ b/hosts/laptop-nixos/configuration.nix @@ -186,6 +186,12 @@ }; }; + # Enable KVM/QEMU virtualization + programs.virt-manager.enable = true; + users.groups.libvirtd.members = ["kyren"]; + virtualisation.libvirtd.enable = true; + virtualisation.spiceUSBRedirection.enable = true; + # Open ports in the firewall. # networking.firewall.allowedTCPPorts = [ ... ]; # networking.firewall.allowedUDPPorts = [ ... ];