From 9aeacafbb2faadadbfc168d0d929ffceed2050c7 Mon Sep 17 00:00:00 2001 From: Giulio De Pasquale Date: Mon, 5 Jun 2023 03:01:37 +0200 Subject: [PATCH] docker: use docker as default backend for containers. disable iptables --- hosts/architect/docker.nix | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/hosts/architect/docker.nix b/hosts/architect/docker.nix index 93c2d37..69b0ee5 100644 --- a/hosts/architect/docker.nix +++ b/hosts/architect/docker.nix @@ -5,13 +5,19 @@ interface = "docker0"; net = "172.17.0.0/16"; }; - - virtualisation.docker = { - enable = true; - extraOptions = '' - --dns 127.0.0.1 --dns ${config.architect.networks.lan.devices.architect.address} --data-root /docker - ''; - enableOnBoot = false; + + virtualisation = { + oci-containers.backend = "docker"; + + docker = { + enable = true; + extraOptions = '' + --dns 127.0.0.1 --dns ${config.architect.networks.lan.devices.architect.address} --data-root /docker + ''; + enableOnBoot = false; + daemon.settings.iptables = false; + }; }; + users.users.giulio.extraGroups = [ "docker" ]; }