services/virtualization: qemu settings for uefi and tpm
This commit is contained in:
parent
0382056207
commit
322c1081f1
1 changed files with 17 additions and 1 deletions
|
@ -7,7 +7,23 @@
|
||||||
|
|
||||||
with lib;
|
with lib;
|
||||||
mkIf (elem "virt-manager" config.machine.services) {
|
mkIf (elem "virt-manager" config.machine.services) {
|
||||||
virtualisation.libvirtd.enable = true;
|
virtualisation = {
|
||||||
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu = {
|
||||||
|
ovmf.enable = true;
|
||||||
|
swtpm.enable = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
qemu = {
|
||||||
|
package = pkgs.qemu_kvm;
|
||||||
|
ovmf = {
|
||||||
|
enable = true;
|
||||||
|
packages = [ pkgs.OVMFFull.fd ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
swtpm.enable = true;
|
||||||
|
};
|
||||||
programs.virt-manager.enable = true;
|
programs.virt-manager.enable = true;
|
||||||
|
|
||||||
services.nfs.server.enable = true;
|
services.nfs.server.enable = true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue