fix(dns): Only generate infra records for nixos machines

This commit is contained in:
Tom Hubrecht 2024-12-08 12:19:31 +01:00
parent 4fa4d0bc21
commit e1586b4873
Signed by: thubrecht
SSH key fingerprint: SHA256:r+nK/SIcWlJ0zFZJGHtlAoRwq1Rm+WcKAm5ADYMoQPc

View file

@ -1,7 +1,13 @@
{ lib, dns, ... }: { lib, dns, ... }:
let let
inherit (lib) mapAttrs' nameValuePair optional; inherit (lib)
filterAttrs
mapAttrs'
nameValuePair
optional
;
inherit (lib.extra) fuseAttrs mapSingleFuse; inherit (lib.extra) fuseAttrs mapSingleFuse;
inherit (dns.lib.combinators) mx spf ttl; inherit (dns.lib.combinators) mx spf ttl;
@ -230,7 +236,7 @@ in
private.A = optional (net.netbirdIp != null) net.netbirdIp; private.A = optional (net.netbirdIp != null) net.netbirdIp;
}; };
} }
) meta.nodes; ) (filterAttrs (_: { nixpkgs, ... }: nixpkgs.system == "nixos") meta.nodes);
}; };
} }
// { // {