building server container repo
This commit is contained in:
parent
2b3fd3562f
commit
243b460145
10 changed files with 18 additions and 22 deletions
39
desktop/virtualization.nix
Executable file
39
desktop/virtualization.nix
Executable file
|
|
@ -0,0 +1,39 @@
|
|||
{ config, pkgs, home-manager, ... }:
|
||||
|
||||
{
|
||||
virtualisation = {
|
||||
};
|
||||
libvirtd = {
|
||||
enable = true;
|
||||
qemu.ovmf.enable = true;
|
||||
qemu.swtpm.enable = true;
|
||||
qemu.ovmf.packages = [ pkgs.OVMFFull ];
|
||||
};
|
||||
spiceUSBRedirection.enable = true;
|
||||
};
|
||||
services.spice-vdagentd.enable = true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
virt-manager
|
||||
virt-viewer
|
||||
spice
|
||||
spice-gtk
|
||||
spice-protocol
|
||||
win-virtio
|
||||
win-spice
|
||||
# quickemu
|
||||
spicy
|
||||
];
|
||||
|
||||
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;
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue