Files
nixos/configuration/modules/virtualisation.nix

34 lines
702 B
Nix

{ pkgs, ... }:
{
virtualisation = {
containers = {
# Enable common container config files in /etc/containers
enable = true;
};
libvirtd = {
enable = true;
qemu = {
vhostUserPackages = [ pkgs.virtiofsd ];
ovmf.enable = true;
};
};
podman = {
enable = true;
dockerSocket.enable = true;
dockerCompat = true;
};
# remember to add the necessary users to the docker group
# docker = {
# enable = true;
# storageDriver = "btrfs";
# };
# waydroid = {
# enable = true;
# };
};
programs.virt-manager.enable = true;
environment.systemPackages = with pkgs;[ podman-compose ];
}