From 2af3952cf54ff5d7716d09164fd9c5c19c7e4b1e Mon Sep 17 00:00:00 2001 From: "Giulio De Pasquale (aider)" Date: Thu, 5 Jun 2025 12:58:08 +0100 Subject: [PATCH] fix: Join extra hosts list into single string --- modules/core/vhost.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/core/vhost.nix b/modules/core/vhost.nix index ab59695..97d8b31 100644 --- a/modules/core/vhost.nix +++ b/modules/core/vhost.nix @@ -121,11 +121,11 @@ in }) cfg.hosts; - networking.extraHosts = lib.flatten (lib.mapAttrsToList + networking.extraHosts = lib.concatStringsSep "\n" (lib.flatten (lib.mapAttrsToList (domain: hostConf: lib.optionals hostConf.resolveLocally "127.0.0.1 ${domain}" ) cfg.hosts - ); + )); }; }