fix uberspace mail records

This commit is contained in:
Joakim Repomaa
2025-06-23 00:30:34 +03:00
parent 3e7e960b8a
commit 405817fa89
2 changed files with 38 additions and 0 deletions

View File

@@ -41,6 +41,12 @@ let
};
default = { };
};
TXT = lib.mkOption {
type = lib.types.submodule {
options = types.ttlOptions cfg.defaults.ttl;
};
default = { };
};
} // (types.ttlOptions 3600);
};
aRecord = lib.types.submodule {
@@ -106,6 +112,18 @@ let
};
};
};
txtRecord = lib.types.submodule {
options = {
values = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
};
ttl = lib.mkOption {
type = lib.types.int;
default = cfg.defaults.AAAA.ttl;
};
};
};
records = lib.types.submodule {
options = {
A = lib.mkOption {
@@ -124,6 +142,10 @@ let
type = types.mxRecord;
default = { };
};
TXT = lib.mkOption {
type = types.txtRecord;
default = { };
};
};
};
};