34 lines
743 B
Nix
34 lines
743 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;[ docker-compose podman-compose podman-tui podman-desktop ];
|
|
}
|
|
|