22 lines
No EOL
712 B
Nix
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
|
|
};
|
|
};
|
|
} |