all repos — nixfiles @ 03243f3c327adcb300543d73355dd9ceca57ffb8

System and user configuration, managed by nix and home-manager

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

Alin
commit

03243f3c327adcb300543d73355dd9ceca57ffb8

parent

0bbcce66d4aaebba4a41365d7fae816420548ac4

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" ]; }; };