2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-11-04 04:37:29 +03:00
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
cfg = config.module.podman;
|
|
|
|
in {
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
virtualisation.podman = {
|
|
|
|
enable = true;
|
2024-06-25 04:04:39 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
# Free the 53 port ffs.
|
|
|
|
defaultNetwork.settings.dns_enabled = false;
|
2024-06-25 04:04:39 +03:00
|
|
|
|
2024-11-04 04:37:29 +03:00
|
|
|
# Do not interfere with Docker so we can have both installed at the same time.
|
|
|
|
# Podman can't replace Docker anyway.
|
|
|
|
dockerCompat = false;
|
|
|
|
};
|
|
|
|
};
|
2024-06-25 04:04:39 +03:00
|
|
|
}
|