building server container repo

This commit is contained in:
Julian Sutter 2024-12-11 10:57:00 -08:00
parent 243b460145
commit aed77cf69d

View file

@ -2,15 +2,17 @@
{
virtualisation = {
};
libvirtd = {
enable = true;
qemu.ovmf.enable = true;
qemu.swtpm.enable = true;
qemu.ovmf.packages = [ pkgs.OVMFFull ];
qemu = {
ovmf.enable = true;
swtpm.enable = true;
ovmf.packages = [ pkgs.OVMFFull ];
};
};
spiceUSBRedirection.enable = true;
};
services.spice-vdagentd.enable = true;
environment.systemPackages = with pkgs; [
@ -27,13 +29,11 @@
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" ];
virtualisation.libvirtd.allowedBridges =
[ "br0" ];
virtualisation.libvirtd.allowedBridges = [ "br0" ];
networking.interfaces.br0.useDHCP = true;
}