19 lines
384 B
Nix
19 lines
384 B
Nix
|
{ pkgs, ... }: {
|
||
|
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];
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
users.users.ash.extraGroups = ["libvirtd"];
|
||
|
}
|