From 136b04cb3f3e900b16018a83cb8a955153334bf6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 16 Sep 2021 15:23:02 +0200 Subject: [PATCH] fix(docker): go around ICE wifi --- configs/docker.nix | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/configs/docker.nix b/configs/docker.nix index e6db890..ab87d86 100644 --- a/configs/docker.nix +++ b/configs/docker.nix @@ -1,5 +1,12 @@ -{ pkgs, ... }: { - virtualisation.docker.enable = true; +{ lib, pkgs, ... }: { + virtualisation.docker = { + enable = true; + # for ICE wifi, ref https://gist.github.com/sunsided/7840e89ff4e11b64a2d7503fafa0290c + extraOptions = lib.concatStringsSep " " [ + "--bip=172.39.1.5/24" + "--fixed-cidr=172.39.1.0/25" + ]; + }; users.users.me.extraGroups = [ "docker" ]; environment.systemPackages = [ pkgs.docker pkgs.docker_compose ]; }