mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 18:15:13 -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
|
||||
inherit (flake.config.people.users.user0) email;
|
||||
inherit (flake.config.services) instances;
|
||||
|
||||
domain0 = instances.web.domains.url0;
|
||||
domain1 = instances.web.domains.url1;
|
||||
dns = instances.web.dns.provider0;
|
||||
|
||||
instanceName = service: (instances.${service}.subdomain);
|
||||
|
||||
dnsConfig = {
|
||||
dnsProvider = dns;
|
||||
directory = instances.acme.paths.path0;
|
||||
|
@ -25,12 +22,11 @@ in {
|
|||
server = "https://acme-v02.api.letsencrypt.org/directory";
|
||||
};
|
||||
certs = builtins.listToAttrs (
|
||||
(map (prefix: {
|
||||
name = "${prefix}.${domain0}";
|
||||
(map (service: {
|
||||
name = "${instanceName service}.${domain0}";
|
||||
value = dnsConfig;
|
||||
})
|
||||
map
|
||||
instanceName [
|
||||
[
|
||||
"nextcloud"
|
||||
"jellyfin"
|
||||
"minecraft"
|
||||
|
@ -38,12 +34,11 @@ in {
|
|||
"syncthing"
|
||||
"vaultwarden"
|
||||
])
|
||||
++ (map (prefix: {
|
||||
name = "${prefix}.${domain1}";
|
||||
++ (map (service: {
|
||||
name = "${instanceName service}.${domain1}";
|
||||
value = dnsConfig;
|
||||
})
|
||||
map
|
||||
instanceName [
|
||||
[
|
||||
"wiki"
|
||||
"nextcloud"
|
||||
"castopod"
|
||||
|
@ -63,7 +58,6 @@ in {
|
|||
])
|
||||
);
|
||||
};
|
||||
|
||||
sops = let
|
||||
sopsSecrets = ["pass"];
|
||||
sopsPath = secret: {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue