module based approach, trying to work on qemu virt?
This commit is contained in:
@@ -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
|
||||
];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user