forked from DGNum/infrastructure
fix(dns): Only generate infra records for nixos machines
This commit is contained in:
parent
4fa4d0bc21
commit
e1586b4873
1 changed files with 8 additions and 2 deletions
10
meta/dns.nix
10
meta/dns.nix
|
@ -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);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Add table
Reference in a new issue