oci: enable host->container name resolution also change the default network subnet rather than re-specifying the unconfigured value as that contains 88, which can invoke connotations in Germany that I'd rather avoid
1 file changed, 24 insertions(+), 0 deletions(-)
changed files
M system/roles/oci.nix → system/roles/oci.nix
@@ -2,6 +2,12 @@ { config, ... }: +let + net = { + gateway = "10.13.0.1"; + subnet = "10.13.0.0/16"; + }; +in { virtualisation.podman = { autoPrune = {@@ -10,6 +16,24 @@ }; defaultNetwork.settings = { ipv6_enabled = true; dns_enabled = true; + subnets = [ + net + ]; + }; + }; + + virtualisation.containers.containersConf = { + settings = { + network = { + default_subnet = net.subnet; + }; + }; + }; + + services.resolved.dnsDelegates.podman = { + Delegate = { + DNS = net.gateway; + Domains = [ "dns.podman" ]; }; };