From e7259ca98071b55ee1177c18fd6b85027f7d82af Mon Sep 17 00:00:00 2001 From: fi Date: Wed, 20 Nov 2024 05:46:40 +0100 Subject: [PATCH] Set resolv.conf file manually for uptime-kuma container due to a bug --- config/hosts/valkyrie/containers/uptime-kuma/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/config/hosts/valkyrie/containers/uptime-kuma/default.nix b/config/hosts/valkyrie/containers/uptime-kuma/default.nix index 78d3437..ca36384 100644 --- a/config/hosts/valkyrie/containers/uptime-kuma/default.nix +++ b/config/hosts/valkyrie/containers/uptime-kuma/default.nix @@ -10,6 +10,13 @@ enable = true; }; + # The resolv.conf file doesn't seem to be copied from host after the first start of the container after reboot + # See: https://nixos.wiki/wiki/NixOS_Containers#Troubleshooting + environment.etc."resolv.conf".text = '' + nameserver 172.16.0.2 + nameserver 172.16.0.3 + ''; + system.stateVersion = "23.05"; }; };