From 9f822630981a804f4f7964ec3b113cbb709c21dd Mon Sep 17 00:00:00 2001 From: buffet Date: Tue, 7 May 2024 21:59:42 +0200 Subject: [PATCH] fix: explicitly set dns servers for containers --- hosts/ami/forgejo-action-runner.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/hosts/ami/forgejo-action-runner.nix b/hosts/ami/forgejo-action-runner.nix index 00d5f47..7f6659c 100644 --- a/hosts/ami/forgejo-action-runner.nix +++ b/hosts/ami/forgejo-action-runner.nix @@ -24,10 +24,16 @@ in { }); }; - virtualisation.podman = { - enable = true; - autoPrune.enable = true; - dockerSocket.enable = true; + virtualisation = { + podman = { + enable = true; + autoPrune.enable = true; + dockerSocket.enable = true; + }; + + containers.containersConf.settings = { + containers.dns_servers = ["1.1.1.1"]; + }; }; users.groups.gitea-runner = {};