virt
This commit is contained in:
parent
0f9e532b4b
commit
ea3ee5ee49
2 changed files with 28 additions and 1 deletions
|
|
@ -22,6 +22,7 @@
|
|||
./modules/dev.nix
|
||||
./modules/office.nix
|
||||
./modules/gaming.nix
|
||||
./modules/virtualization.nix
|
||||
];
|
||||
};
|
||||
aurora = nixpkgs.lib.nixosSystem {
|
||||
|
|
|
|||
|
|
@ -9,12 +9,38 @@
|
|||
dates = "weekly";
|
||||
};
|
||||
};
|
||||
libvirtd.enable = true;
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu.ovmf.enable = true;
|
||||
qemu.swtpm.enable = true;
|
||||
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
virtualbox.host = {
|
||||
enable = false;
|
||||
enableExtensionPack = true;
|
||||
};
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
win-virtio
|
||||
];
|
||||
|
||||
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
||||
|
||||
environment.sessionVariables.LIBVIRT_DEFAULT_URI = [ "qemu:///system" ];
|
||||
|
||||
boot.kernelModules = [ "kvm-intel" "kvm-amd" ];
|
||||
|
||||
virtualisation.libvirtd.allowedBridges =
|
||||
[ "br0" ];
|
||||
|
||||
networking.interfaces.br0.useDHCP = true;
|
||||
|
||||
networking.bridges = {
|
||||
"br0" = {
|
||||
interfaces = [ "eth0" "wlan0" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue