mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-24 23:11:55 -05:00
21 lines
471 B
Nix
21 lines
471 B
Nix
{ pkgs, lib, config, ... }: {
|
|
|
|
options = {
|
|
apps.podman.enable =
|
|
lib.mkEnableOption "Enables Podman for OCI container support.";
|
|
};
|
|
|
|
config = lib.mkIf config.apps.podman.enable {
|
|
|
|
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;
|
|
};
|
|
};
|
|
|
|
};
|
|
}
|