refactor: complete overhaul

This commit is contained in:
Nick 2024-11-10 02:07:51 -06:00
parent d99b004b5c
commit 2a2b90020b
2 changed files with 3 additions and 4 deletions

View file

@ -1,14 +1,12 @@
{instancesFunctions}: let
inherit (instancesFunctions) sopsPath;
inherit (instancesFunctions) dummy;
nginxLabel = "Ngnix";
nginxName = "nginx";
in {
name = nginxName;
label = nginxLabel;
sops = {
path0 = "${sopsPath}/${nginxName}";
};
email = dummy;
ports = {
port0 = 8080; # HTTP
port1 = 8443; # HTTPS

View file

@ -11,6 +11,7 @@ let
sopsPath = "/var/lib/secrets";
sslPath = "/var/lib/acme";
varLib = "/var/lib";
dummy = [];
};
instances = builtins.listToAttrs (map (name: {