system/roles/oci.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | {
config,
...
}:
{
virtualisation.podman = {
autoPrune = {
enable = true;
};
defaultNetwork.settings = {
ipv6_enabled = true;
dns_enabled = true;
};
};
assertions = [
{
assertion =
(config.virtualisation.podman.defaultNetwork.settings.dns_enabled && config.services.dnsmasq.enable)
-> config.services.dnsmasq.settings.bind-interfaces != true;
message = "Need to use bind-interfaces in dnsmasq when using dns in a podman network";
}
];
}
|