From 7e85907150dcbd01f47d9bc47b23b1be04cf5776 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Thu, 7 Dec 2023 10:06:37 +0100 Subject: [PATCH 1/2] remove resolved --- hosts/fw.cloonar.com/modules/networking.nix | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/hosts/fw.cloonar.com/modules/networking.nix b/hosts/fw.cloonar.com/modules/networking.nix index f8e0bb4..a5591b7 100644 --- a/hosts/fw.cloonar.com/modules/networking.nix +++ b/hosts/fw.cloonar.com/modules/networking.nix @@ -20,18 +20,6 @@ }; }; - services.resolved = { - enable = true; - # dnssec = "true"; - domains = [ "~." ]; - fallbackDns = [ "10.42.97.10" ]; - extraConfig = '' - # DNSOverTLS=yes - DNSStubListenerExtra=10.89.0.1 - DNSStubListenerExtra=10.42.97.1 - ''; - }; - networking = { useDHCP = false; # Define VLANS From a5322ef78845ccf31f354c15f19ff823ff3ec133 Mon Sep 17 00:00:00 2001 From: Dominik Polakovics Date: Thu, 7 Dec 2023 10:09:33 +0100 Subject: [PATCH 2/2] change container network to host --- hosts/fw.cloonar.com/modules/gitea.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hosts/fw.cloonar.com/modules/gitea.nix b/hosts/fw.cloonar.com/modules/gitea.nix index e686237..8288fc6 100644 --- a/hosts/fw.cloonar.com/modules/gitea.nix +++ b/hosts/fw.cloonar.com/modules/gitea.nix @@ -131,6 +131,10 @@ in labels = [ "ubuntu-latest:docker://shivammathur/node:latest" ]; + settings = { + # the default network that also respects our dns server settings + container.network = "host"; + }; }; # containers.git-runner = {