feat: figured out how to share types across files

This commit is contained in:
silver 2024-03-11 23:14:29 +00:00
parent 106485a754
commit ed43da872c
3 changed files with 29 additions and 41 deletions

19
_types/dns_object.nix Normal file
View file

@ -0,0 +1,19 @@
{lib, ...}:
with lib; {
options = {
record = mkOption {
type = types.str;
};
r_type = mkOption {
type = types.enum ["A" "CNAME" "TXT" "PTR" "SRV" "MX"];
};
value = mkOption {
type = types.str;
};
server = mkOption {
description = "Core record for a server";
type = types.bool;
default = false;
};
};
}