diff options
author | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-10-16 13:25:46 +0200 |
---|---|---|
committer | Quentin Dufour <quentin@deuxfleurs.fr> | 2022-10-16 13:25:46 +0200 |
commit | 38a544d9c45a7c6ce682d8677e52f022d9547177 (patch) | |
tree | b577ed9a71e4471bc46c388ac60ddf5b3cde1393 /nix/configuration.nix | |
parent | b5a0f8bd828e3f8b90d445540d7f98691dd7c618 (diff) | |
download | nixcfg-38a544d9c45a7c6ce682d8677e52f022d9547177.tar.gz nixcfg-38a544d9c45a7c6ce682d8677e52f022d9547177.zip |
Correctly inject dns servers in docker
Diffstat (limited to 'nix/configuration.nix')
-rw-r--r-- | nix/configuration.nix | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix index 17bb9b8..800d36d 100644 --- a/nix/configuration.nix +++ b/nix/configuration.nix @@ -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 |