25 lines
458 B
Nix
25 lines
458 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.module.podman;
|
|
in {
|
|
options.module.podman = {
|
|
enable = lib.mkEnableOption "the OCI Podman.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
|
|
# Free the 53 port ffs.
|
|
defaultNetwork.settings.dns_enabled = false;
|
|
|
|
# Do not interfere with Docker so we can have both installed at the same time.
|
|
# Podman can't replace Docker anyway.
|
|
dockerCompat = false;
|
|
};
|
|
};
|
|
}
|