feat: refactored abstractions

This commit is contained in:
Nick 2024-10-19 18:22:29 -05:00
parent f3897c1e0c
commit 2e0ba5f89e
23 changed files with 324 additions and 310 deletions

View file

@ -7,7 +7,6 @@
"phone"
"server"
"tablet"
"wildcard"
];
instanceNames = [
"acme"
@ -28,7 +27,8 @@
"syncthing"
"synology"
"vaultwarden"
"wiki-js"
"web"
"wiki"
"writefreely"
];
userNames = [
@ -78,9 +78,7 @@ in let
sshKeys = listType;
group = stringType;
email = genOptions stringType "address";
domain = genOptions stringType "url";
dns = genOptions stringType "provider";
git = genOptions stringType "path";
paths = genOptions stringType "path";
};
};
serviceSubmodule = lib.types.submodule {
@ -104,6 +102,10 @@ in let
subdomain = stringType;
label = stringType;
name = stringType;
domains = genOptions stringType "url";
dns = genOptions stringType "provider";
localhost = genOptions stringType "address";
email = genOptions stringType "address";
sops = genOptions stringType "path";
paths = genOptions stringType "path";
ports = genOptions intType "port";