mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 02:25:12 -05:00
feat: server test
This commit is contained in:
parent
b8f9f86509
commit
0a817c26ee
1 changed files with 6 additions and 12 deletions
|
@ -5,13 +5,10 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (flake.config.people.users.user0) email;
|
inherit (flake.config.people.users.user0) email;
|
||||||
inherit (flake.config.services) instances;
|
inherit (flake.config.services) instances;
|
||||||
|
|
||||||
domain0 = instances.web.domains.url0;
|
domain0 = instances.web.domains.url0;
|
||||||
domain1 = instances.web.domains.url1;
|
domain1 = instances.web.domains.url1;
|
||||||
dns = instances.web.dns.provider0;
|
dns = instances.web.dns.provider0;
|
||||||
|
|
||||||
instanceName = service: (instances.${service}.subdomain);
|
instanceName = service: (instances.${service}.subdomain);
|
||||||
|
|
||||||
dnsConfig = {
|
dnsConfig = {
|
||||||
dnsProvider = dns;
|
dnsProvider = dns;
|
||||||
directory = instances.acme.paths.path0;
|
directory = instances.acme.paths.path0;
|
||||||
|
@ -25,12 +22,11 @@ in {
|
||||||
server = "https://acme-v02.api.letsencrypt.org/directory";
|
server = "https://acme-v02.api.letsencrypt.org/directory";
|
||||||
};
|
};
|
||||||
certs = builtins.listToAttrs (
|
certs = builtins.listToAttrs (
|
||||||
(map (prefix: {
|
(map (service: {
|
||||||
name = "${prefix}.${domain0}";
|
name = "${instanceName service}.${domain0}";
|
||||||
value = dnsConfig;
|
value = dnsConfig;
|
||||||
})
|
})
|
||||||
map
|
[
|
||||||
instanceName [
|
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
"jellyfin"
|
"jellyfin"
|
||||||
"minecraft"
|
"minecraft"
|
||||||
|
@ -38,12 +34,11 @@ in {
|
||||||
"syncthing"
|
"syncthing"
|
||||||
"vaultwarden"
|
"vaultwarden"
|
||||||
])
|
])
|
||||||
++ (map (prefix: {
|
++ (map (service: {
|
||||||
name = "${prefix}.${domain1}";
|
name = "${instanceName service}.${domain1}";
|
||||||
value = dnsConfig;
|
value = dnsConfig;
|
||||||
})
|
})
|
||||||
map
|
[
|
||||||
instanceName [
|
|
||||||
"wiki"
|
"wiki"
|
||||||
"nextcloud"
|
"nextcloud"
|
||||||
"castopod"
|
"castopod"
|
||||||
|
@ -63,7 +58,6 @@ in {
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
sops = let
|
sops = let
|
||||||
sopsSecrets = ["pass"];
|
sopsSecrets = ["pass"];
|
||||||
sopsPath = secret: {
|
sopsPath = secret: {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue