nix/modules/podman.nix
2025-09-08 20:37:50 +02:00

22 lines
No EOL
712 B
Nix

{ config, pkgs, lib, ... }:
{
# Container virtualization with Podman
virtualisation = {
podman = {
enable = true;
# Create a `docker` alias for podman, to use it as a drop-in replacement
dockerCompat = true;
# Required for containers under podman-compose to be able to talk to each other
defaultNetwork.settings.dns_enabled = true;
# Extra packages for networking
extraPackages = [ pkgs.netavark pkgs.aardvark-dns ];
};
# Enable OCI container support
oci-containers = {
backend = "podman";
# Container definitions are now defined in host-specific containers.nix files
# and will be merged with this base configuration
};
};
}