vms
This commit is contained in:
parent
4cc421ec43
commit
a612898422
|
@ -0,0 +1,20 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
|
||||||
|
# https://wiki.nixos.org/wiki/Virt-manager
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.virt-manager.enable = true; # can be x-forwarded
|
||||||
|
virtualisation.libvirtd.enable = true;
|
||||||
|
/* virtualisation.libvirtd.onShutdown = "shutdown"; # default is "suspend" */
|
||||||
|
/* virtualisation.libvirtd.shutdownTimeout = 300; */
|
||||||
|
|
||||||
|
#networking.firewall.trustedInterfaces = [
|
||||||
|
# "virbr0"
|
||||||
|
# "virbr0-nic"
|
||||||
|
#];
|
||||||
|
|
||||||
|
virtualisation.libvirtd.qemu.package = pkgs.qemu_kvm;
|
||||||
|
|
||||||
|
# Allows libvirtd to use swtpm to create an emulated TPM.
|
||||||
|
/* virtualisation.libvirtd.qemu.swtpm.enable = true; */
|
||||||
|
}
|
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
virtualisation.vmware.host.enable = true;
|
||||||
|
|
||||||
|
#environment.persistence."/nix/persistent" = {
|
||||||
|
# directories = [ "/etc/vmware" ];
|
||||||
|
#};
|
||||||
|
|
||||||
|
# VMWare fix
|
||||||
|
#boot.kernelParams = [ "ibt=off" ];
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
{ pkgs, ... }:
|
||||||
|
{
|
||||||
|
# This requires a reboot into a Xen kernel to take effect.
|
||||||
|
virtualisation.xen.enable = true;
|
||||||
|
system.nixos.tags = [ "with-xen" ]; # just cosmetic
|
||||||
|
}
|
|
@ -44,6 +44,7 @@
|
||||||
"users" # backward compat
|
"users" # backward compat
|
||||||
"keys" # access tokens in nix.conf
|
"keys" # access tokens in nix.conf
|
||||||
#"nix-community-builder"
|
#"nix-community-builder"
|
||||||
|
"libvirtd"
|
||||||
"networkmanager"
|
"networkmanager"
|
||||||
"audio"
|
"audio"
|
||||||
"sound"
|
"sound"
|
||||||
|
|
Loading…
Reference in New Issue