2024-03-28 16:13:46 -04:00
|
|
|
{ pkgs, lib, config, ... }: {
|
|
|
|
|
|
|
|
options = {
|
2024-03-29 21:51:10 -04:00
|
|
|
apps.podman.enable =
|
|
|
|
lib.mkEnableOption "Enables Podman for OCI container support.";
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
|
|
|
|
2024-03-29 21:51:10 -04:00
|
|
|
config = lib.mkIf config.apps.podman.enable {
|
2024-03-28 16:13:46 -04:00
|
|
|
|
|
|
|
virtualisation = {
|
|
|
|
oci-containers = { backend = "podman"; };
|
|
|
|
podman = {
|
|
|
|
# Required for containers under podman-compose to be able to talk to each other.
|
|
|
|
defaultNetwork.settings.dns_enabled = true;
|
|
|
|
enable = true;
|
|
|
|
};
|
|
|
|
};
|
2024-03-29 21:51:10 -04:00
|
|
|
|
2024-03-28 16:13:46 -04:00
|
|
|
};
|
2024-03-28 16:40:23 -04:00
|
|
|
}
|