building server container repo
This commit is contained in:
parent
243b460145
commit
aed77cf69d
1 changed files with 11 additions and 11 deletions
|
|
@ -2,15 +2,17 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
};
|
|
||||||
libvirtd = {
|
libvirtd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
qemu.ovmf.enable = true;
|
qemu = {
|
||||||
qemu.swtpm.enable = true;
|
ovmf.enable = true;
|
||||||
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
swtpm.enable = true;
|
||||||
|
ovmf.packages = [ pkgs.OVMFFull ];
|
||||||
|
};
|
||||||
};
|
};
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
services.spice-vdagentd.enable = true;
|
services.spice-vdagentd.enable = true;
|
||||||
|
|
||||||
environment.systemPackages = with pkgs; [
|
environment.systemPackages = with pkgs; [
|
||||||
|
|
@ -21,19 +23,17 @@
|
||||||
spice-protocol
|
spice-protocol
|
||||||
win-virtio
|
win-virtio
|
||||||
win-spice
|
win-spice
|
||||||
# quickemu
|
# quickemu
|
||||||
spicy
|
spicy
|
||||||
];
|
];
|
||||||
|
|
||||||
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
||||||
|
|
||||||
environment.sessionVariables.LIBVIRT_DEFAULT_URI = [ "qemu:///system" ];
|
environment.sessionVariables.LIBVIRT_DEFAULT_URI = "qemu:///system";
|
||||||
|
|
||||||
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
||||||
|
|
||||||
virtualisation.libvirtd.allowedBridges =
|
virtualisation.libvirtd.allowedBridges = [ "br0" ];
|
||||||
[ "br0" ];
|
|
||||||
|
|
||||||
networking.interfaces.br0.useDHCP = true;
|
networking.interfaces.br0.useDHCP = true;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue