# Virtualization / Containers virtualisation.containers.enable = true;virtualisation={podman={enable= true;# Create a `docker` alias for podman, to use it as a drop-in replacementdockerCompat= true;# Required for containers under podman-compose to be able to talk to each other. defaultNetwork.settings.dns_enabled = true;};};...
environment.systemPackages = with pkgs;[ ...
podman
podman-compose
...
];
Define Registries
Podman needs to know in which registry to fetch the base images that we will use.
To do so we have to set the list of registries in ~/.config/containers/registries.conf.
Set Default Folders
storage.driver
This specifies the storage driver used for containers. Common options include “zfs” for ZFS file system, or “dir” for using a directory.
storage.graphroot
Defines the root directory where container image layers are stored. This directory will contain the root file systems of the images themselves.
storage.runroot
Specifies the root directory where containers’ runtime data (like their root file systems, and log files) are stored. This directory might also be used to store configuration and state data.