Allow DNS for non skynet.ie domains #122

Merged
silver merged 12 commits from #55-non-skynet-dns into main 2024-07-17 19:08:53 +00:00
Showing only changes of commit 15e534c222 - Show all commits

View file

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