From e1586b48738677951f602a300b990b50dfe6dfa5 Mon Sep 17 00:00:00 2001 From: Tom Hubrecht Date: Sun, 8 Dec 2024 12:19:31 +0100 Subject: [PATCH] fix(dns): Only generate infra records for nixos machines --- meta/dns.nix | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/meta/dns.nix b/meta/dns.nix index 532dc4b..a46664d 100644 --- a/meta/dns.nix +++ b/meta/dns.nix @@ -1,7 +1,13 @@ { lib, dns, ... }: let - inherit (lib) mapAttrs' nameValuePair optional; + inherit (lib) + filterAttrs + mapAttrs' + nameValuePair + optional + ; + inherit (lib.extra) fuseAttrs mapSingleFuse; inherit (dns.lib.combinators) mx spf ttl; @@ -230,7 +236,7 @@ in private.A = optional (net.netbirdIp != null) net.netbirdIp; }; } - ) meta.nodes; + ) (filterAttrs (_: { nixpkgs, ... }: nixpkgs.system == "nixos") meta.nodes); }; } // {