From 78c72e366520c5302d3e5c8a1080ebbed6dc3051 Mon Sep 17 00:00:00 2001 From: niten Date: Thu, 18 Jan 2024 22:15:49 -0800 Subject: [PATCH] Set up nameservers for the FUCKING podman SHIT --- mastodon-container.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/mastodon-container.nix b/mastodon-container.nix index fea4e83..b29f25f 100644 --- a/mastodon-container.nix +++ b/mastodon-container.nix @@ -44,6 +44,12 @@ in { default = 4; }; + nameservers = mkOption { + type = listOf str; + description = "Nameservers to use for DNS resolution."; + default = [ "1.1.1.1" ]; + }; + smtp = { host = mkOption { type = str; @@ -105,6 +111,7 @@ in { configuration = { boot.tmp.useTmpfs = true; system.nssModules = mkForce [ ]; + networking.nameservers = cfg.nameservers; services = { nscd.enable = false; postgresql.enable = true;