feat: smtp test

This commit is contained in:
Nick 2025-02-02 20:51:18 -06:00
parent 12293c0a31
commit 748267110c
2 changed files with 19 additions and 31 deletions

View file

@ -1,18 +0,0 @@
{ instancesFunctions }:
let
inherit (instancesFunctions)
dummy
;
hledgerLabel = "Hledger";
hledgerName = "hledger";
in
{
label = hledgerLabel;
name = hledgerName;
paths = {
path0 = "/mnt/media/storage/${hledgerLabel}";
};
ports = {
port0 = 5000;
};
}

View file

@ -12,10 +12,12 @@ let
sopsPath = "/var/lib/secrets"; sopsPath = "/var/lib/secrets";
sslPath = "/var/lib/acme"; sslPath = "/var/lib/acme";
varLib = "/var/lib"; varLib = "/var/lib";
dummy = []; dummy = "";
}; };
instances = builtins.listToAttrs (map (name: { instances = builtins.listToAttrs (
map
(name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name; name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (configPath + "/${name}") { value = import (configPath + "/${name}") {
inherit inherit
@ -23,9 +25,13 @@ let
; ;
}; };
}) })
(builtins.filter (name: (
builtins.match ".*\\.nix$" name != null) (builtins.attrNames builtins.filter (name: builtins.match ".*\\.nix$" name != null) (
(builtins.readDir configPath)))); builtins.attrNames (builtins.readDir configPath)
in { )
)
);
in
{
instances = instances; instances = instances;
} }