From ac5176e731a43815035dde1e90811344713f89fd Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Fri, 12 May 2023 14:29:17 +0200 Subject: [PATCH] docker: port to networking attrset --- hosts/architect/docker.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hosts/architect/docker.nix b/hosts/architect/docker.nix index 6e294da..93c2d37 100644 --- a/hosts/architect/docker.nix +++ b/hosts/architect/docker.nix @@ -1,8 +1,15 @@ +{ config, ... }: + { + architect.networks.docker = { + interface = "docker0"; + net = "172.17.0.0/16"; + }; + virtualisation.docker = { enable = true; extraOptions = '' - --dns 127.0.0.1 --dns 10.0.0.250 --data-root /docker + --dns 127.0.0.1 --dns ${config.architect.networks.lan.devices.architect.address} --data-root /docker ''; enableOnBoot = false; };