oci: init module
2 files changed, 24 insertions(+), 0 deletions(-)
changed files
A system/roles/oci.nix
@@ -0,0 +1,23 @@ +{ + config, + ... +}: +{ + virtualisation.podman = { + autoPrune = { + enable = true; + }; + defaultNetwork.settings = { + 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"; + } + ]; +}
M system/roles/router.nix → system/roles/router.nix
@@ -252,6 +252,7 @@ interface = [ lan "lan*" ]; + bind-interfaces = true; enable-ra = false; dhcp-fqdn = true;