VM stuff, not working rn
This commit is contained in:
parent
8159129886
commit
adc7f4e309
1 changed files with 13 additions and 3 deletions
|
@ -14,6 +14,7 @@
|
||||||
|
|
||||||
# Install necessary packages
|
# Install necessary packages
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
OVMFFull
|
||||||
qemu
|
qemu
|
||||||
qemu_kvm
|
qemu_kvm
|
||||||
spice
|
spice
|
||||||
|
@ -43,10 +44,19 @@
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu = {
|
qemu = {
|
||||||
runAsRoot = true;
|
package = pkgs.qemu_kvm;
|
||||||
|
runAsRoot = false;
|
||||||
swtpm.enable = true;
|
swtpm.enable = true;
|
||||||
ovmf.enable = true;
|
ovmf = {
|
||||||
ovmf.packages = with pkgs; [ OVMFFull.fd ];
|
enable = true;
|
||||||
|
packages = with pkgs; [( OVMFFull.override {
|
||||||
|
secureBoot = true;
|
||||||
|
tpmSupport = true;
|
||||||
|
httpSupport = true;
|
||||||
|
}).fd];
|
||||||
|
};
|
||||||
|
# ovmf.enable = true;
|
||||||
|
# ovmf.packages = with pkgs; [ OVMFFull.fd ];
|
||||||
vhostUserPackages = with pkgs; [ virtiofsd ];
|
vhostUserPackages = with pkgs; [ virtiofsd ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue