nix-config/modules/virtualization.nix

24 lines
415 B
Nix
Raw Normal View History

2022-05-25 19:27:42 +02:00
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
virtmanager
];
boot.binfmt.emulatedSystems = [ "aarch64-linux" ];
# virtualization
boot.kernelModules = [ "kvm-intel" ];
virtualisation = {
libvirtd = {
enable = true;
qemu.runAsRoot = false;
qemu.package = pkgs.qemu_full;
};
podman = {
enable = true;
dockerCompat = true;
};
};
}