Skip to content

Commit

Permalink
feat: add libvirt, qemu-kvm
Browse files Browse the repository at this point in the history
  • Loading branch information
glwbr committed Sep 7, 2024
1 parent 926d78c commit 4b10a54
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions system/programs/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
./fonts.nix
./home-manager.nix
./hyprland.nix
./virt.nix
./xdg.nix
./zsh.nix
];
Expand Down
31 changes: 31 additions & 0 deletions system/programs/virt.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{pkgs, ...}: {
virtualisation = {
libvirtd = {
enable = true;
qemu = {
package = pkgs.qemu_kvm;
swtpm.enable = true;
ovmf.enable = true;
ovmf.packages = [pkgs.OVMFFull.fd];
};
};
spiceUSBRedirection.enable = true;
};

environment.systemPackages = with pkgs; [
spice
spice-gtk
spice-protocol
virt-viewer
];
programs.virt-manager.enable = true;

home-manager.users.glwbr = {
dconf.settings = {
"org/virt-manager/virt-manager/connections" = {
autoconnect = ["qemu:///system"];
uris = ["qemu:///system"];
};
};
};
}

0 comments on commit 4b10a54

Please sign in to comment.