commit 7faf3430eb9da6b583a40fc908126e7849f19f13
parent 738828b375881d1b466bab668c06920c8ed89c8a
Author: Vincent Demeester <vincent@sbr.pm>
Date: Mon, 7 Feb 2022 15:41:06 +0100
systems/profiles: fix docker daemon.settings
Migrate manual `/etc/dokcer/daemon.json` configuration to the NixOS
option (docker.daemon.settings) to be taken into account.
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
Diffstat:
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/systems/modules/profiles/docker.nix b/systems/modules/profiles/docker.nix
@@ -37,11 +37,12 @@ in
liveRestore = false;
storageDriver = "overlay2";
extraOptions = "--experimental --add-runtime docker-runc=${cfg.runcPackage}/bin/runc --default-runtime=docker-runc --containerd=/run/containerd/containerd.sock";
+ daemon.settings = {
+ features = { buildkit = true; };
+ insecure-registries = [ "172.30.0.0/16" "192.168.12.0/16" "massimo.home:5000" "r.svc.home:5000" "r.svc.home" ];
+ };
};
};
- environment.etc."docker/daemon.json".text = ''
- {"features":{"buildkit": true}, "insecure-registries": ["172.30.0.0/16", "192.168.12.0/16", "massimo.home:5000", "r.svc.home:5000", "r.svc.home" ]}
- '';
environment.systemPackages = with pkgs; [
my.buildx
];