24 lines
508 B
Nix
24 lines
508 B
Nix
|
/*
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|