all repos — nixfiles @ 256bd605be5d23aae11c93cc97ba533e7b67c69e

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

oci: init module

Alin
commit

256bd605be5d23aae11c93cc97ba533e7b67c69e

parent

7dd44ba410c2d49549550b59cccaa53bfb24a2d4

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;