Correctly inject dns servers in docker

This commit is contained in:
Quentin 2022-10-16 13:25:46 +02:00
parent b5a0f8bd82
commit 38a544d9c4
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 6 additions and 1 deletions

View File

@ -64,7 +64,6 @@ SystemMaxUse=1G
links2
git
rclone
docker
docker-compose
wireguard-tools
#qemu
@ -81,6 +80,12 @@ SystemMaxUse=1G
services.openssh.enable = true;
services.openssh.passwordAuthentication = false;
virtualisation.docker = {
enable = true;
extraOptions = "--config-file=${pkgs.writeText "daemon.json" (builtins.toJSON {
dns = [ "172.17.0.1" "8.8.8.8" "8.8.4.4" ];
})}";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions