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/dev.nix
|
||||||
./modules/office.nix
|
./modules/office.nix
|
||||||
./modules/gaming.nix
|
./modules/gaming.nix
|
||||||
|
./modules/virtualization.nix
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
aurora = nixpkgs.lib.nixosSystem {
|
aurora = nixpkgs.lib.nixosSystem {
|
||||||
|
|
|
||||||
|
|
@ -9,12 +9,38 @@
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
libvirtd.enable = true;
|
libvirtd = {
|
||||||
|
enable = true;
|
||||||
|
qemu.ovmf.enable = true;
|
||||||
|
qemu.swtpm.enable = true;
|
||||||
|
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
||||||
|
};
|
||||||
spiceUSBRedirection.enable = true;
|
spiceUSBRedirection.enable = true;
|
||||||
virtualbox.host = {
|
virtualbox.host = {
|
||||||
enable = false;
|
enable = false;
|
||||||
enableExtensionPack = true;
|
enableExtensionPack = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = with pkgs; [
|
||||||
|
virt-manager
|
||||||
|
win-virtio
|
||||||
|
];
|
||||||
|
|
||||||
users.extraGroups.vboxusers.members = [ "jsutter" ];
|
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