From f1bd105afaedb002077452e8c45e16ed3f4f7041 Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sun, 21 Mar 2021 02:45:31 +0100 Subject: [PATCH] wink: add nat and coredns to container This should let it talk to the outside network (i.e. the internet), and thereby enable the oauth2-proxy to redeem codes to authenticate clients. --- services/wink.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/services/wink.nix b/services/wink.nix index 689be72..b211f3e 100644 --- a/services/wink.nix +++ b/services/wink.nix @@ -64,7 +64,14 @@ }; }; - + services.coredns = { + enable = true; + config = '' + .:53 { + forward . 1.1.1.1 + } + ''; + }; }; }; @@ -75,6 +82,9 @@ enableACME = true; }; + networking.nat.enable = true; + networking.nat.internalInterfaces = ["ve-wink"]; + networking.nat.externalInterface = "enp6s0"; }