feat: add new option for dns records

This commit is contained in:
silver 2024-07-16 23:17:38 +01:00
parent e9d5985adf
commit 15e534c222
Signed by: silver
GPG key ID: 54E2C71918E93B74

View file

@ -5,13 +5,21 @@ They are imported into anything that needs to use them
{lib, ...}:
with lib; {
options = {
domain = lib.mkOption {
description = "Domain this record is for";
type = lib.types.str;
default = "skynet.ie";
};
record = lib.mkOption {
description = "What you want to name the subdomain.";
type = lib.types.str;
};
r_type = lib.mkOption {
description = "Type of record that this is.";
type = lib.types.enum ["A" "CNAME" "TXT" "PTR" "SRV" "MX"];
};
value = lib.mkOption {
description = "What the record points to, normally ip or another record.";
type = lib.types.str;
};
server = lib.mkOption {