module based approach, trying to work on qemu virt?

This commit is contained in:
2026-06-18 18:51:58 -05:00
parent 0667034c69
commit 57f459b8f8
9 changed files with 293 additions and 5 deletions
+32
View File
@@ -0,0 +1,32 @@
{
config,
lib,
pkgs,
...
}:
{
virtualisation.libvirtd.enable = true;
programs.virt-manager.enable = true;
virtualisation.libvirtd.qemu = {
ovmf.enable = true;
swtpm.enable = true;
};
boot.kernelModules = [
"kvm-intel"
"kvm-amd"
];
users.users.river.extraGroups = [
"libvirtd"
"kvm"
];
environment.systemPackages = with pkgs; [
virt-manager
qemu
];
};