Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dns/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
let
dnslib = {
util = import ./util { inherit lib; };
inherit types;
inherit types combinators;
};
types = import ./types { lib = lib'; };
lib' = lib // { dns = dnslib; };
Expand Down
1 change: 1 addition & 0 deletions dns/types/record.nix
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ let
description = "Record caching duration (in seconds)";
};
} // rsubt.options;
config._module.args = { inherit (lib) dns; };
};
in
(if rsubt ? fromString then types.either types.str else lib.id) submodule;
Expand Down
2 changes: 2 additions & 0 deletions dns/types/zone.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ let

subzone = types.submodule {
options = subzoneOptions;
config._module.args = { inherit (lib) dns; };
};

writeSubzone = name: zone:
Expand Down Expand Up @@ -84,6 +85,7 @@ let
} // subzoneOptions;

config = {
_module.args = { inherit (lib) dns; };
__toString = zone@{ useOrigin, TTL, SOA, ... }:
if useOrigin then
''
Expand Down