Files
nixos/hosts/jude/virt.nix
T
2023-08-14 00:41:41 -05:00

34 lines
625 B
Nix

{ pkgs, ... }:
{
environment.systemPackages = with pkgs; [
guestfs-tools
libguestfs
packer
virt-manager
vmware-workstation
];
# Give my user access to the libvirtd process
users.users.greg.extraGroups = [ "libvirtd" ];
virtualisation = {
libvirtd = {
enable = true;
onBoot = "ignore"; # Do not auto-restart VMs on boot, unless they are marked autostart
};
virtualbox.host = {
enable = true;
enableExtensionPack = true;
};
waydroid.enable = true;
lxd.enable = true;
};
users.extraGroups.vboxusers.members = [ "greg" ];
boot.extraModprobeConfig = "options kvm_amd nested=1";
}