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 = { 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; [
@ -27,13 +29,11 @@
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;
} }