1
0
Fork 0
forked from DGNum/lab-infra

fix(dns01): Use the meta provided by the module system

This commit is contained in:
sinavir 2024-12-22 02:37:15 +01:00
parent 1f28d0ccbf
commit 138ea89bbc
2 changed files with 15 additions and 4 deletions

View file

@ -1,8 +1,12 @@
{ dns, lib, ... }: {
meta,
dns,
lib,
...
}:
let let
inherit (lib) mapAttrs' nameValuePair; inherit (lib) mapAttrs' nameValuePair;
meta = (import ./../../meta) lib;
in in
with dns.lib.combinators; with dns.lib.combinators;
{ {
@ -29,6 +33,8 @@ with dns.lib.combinators;
status = host "129.199.146.103" null; status = host "129.199.146.103" null;
kfet = host "129.199.146.230" "2a0e:e701:1120:1000::f:1";
# Nameservers # Nameservers
ns01 = host "45.13.104.26" "2a0e:e701:1120:1000:ffff::45.13.104.26"; ns01 = host "45.13.104.26" "2a0e:e701:1120:1000:ffff::45.13.104.26";

View file

@ -1,4 +1,9 @@
{ sources, lib, ... }: {
sources,
lib,
meta,
...
}:
let let
dns = import sources.dns-nix { }; dns = import sources.dns-nix { };
@ -12,7 +17,7 @@ in
"lab.dgnum.eu" = { "lab.dgnum.eu" = {
# provideXFR = [ ... ]; # provideXFR = [ ... ];
# notify = [ ... ]; # notify = [ ... ];
data = dns.lib.toString "lab.dgnum.eu" (import ./lab.dgnum.eu.nix { inherit dns lib; }); data = dns.lib.toString "lab.dgnum.eu" (import ./lab.dgnum.eu.nix { inherit meta dns lib; });
}; };
}; };
}; };