nixcfg/nixosModules/apps/podman/default.nix

23 lines
474 B
Nix
Raw Normal View History

2024-04-07 22:16:33 -04:00
{
pkgs,
lib,
config,
...
}: {
options = {
apps.podman.enable =
lib.mkEnableOption "Enables Podman for OCI container support.";
};
config = lib.mkIf config.apps.podman.enable {
virtualisation = {
2024-04-07 22:16:33 -04:00
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-28 16:40:23 -04:00
}