Skip to content
Open
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
13 changes: 9 additions & 4 deletions dns/types/record.nix
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,15 @@ let
# add default values for the record type
(recordType rsubt).merge [] [ { file = ""; value = rsubt.fromString data; } ]
else data;
name' = let fname = rsubt.nameFixup or (n: _: n) name data'; in
if name == "@" then name
else if (hasSuffix ".@" name) then removeSuffix ".@" fname
else "${fname}.";
name' =
let
fname = rsubt.nameFixup or (n: _: n) name data';
in
if fname == "@"
then fname
else if (hasSuffix ".@" fname)
then removeSuffix ".@" fname
else "${fname}.";
rtype = rsubt.rtype;
in lib.concatStringsSep " " (with data'; [
name'
Expand Down