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, ... }:
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);
};
}
// {