nixos/applications/dns/options-records.nix

24 lines
508 B
Nix
Raw Normal View History

2024-07-16 21:31:28 +00:00
/*
Define the options for dns records here.
They are imported into anything that needs to use them
*/
{lib, ...}:
with lib; {
options = {
record = lib.mkOption {
type = lib.types.str;
};
r_type = lib.mkOption {
type = lib.types.enum ["A" "CNAME" "TXT" "PTR" "SRV" "MX"];
};
value = lib.mkOption {
type = lib.types.str;
};
server = lib.mkOption {
description = "Core record for a server";
type = lib.types.bool;
default = false;
};
};
}