feat: hledger test

This commit is contained in:
Nick 2025-01-22 00:54:45 -06:00
parent d145245648
commit 77f1db64d2
6 changed files with 3 additions and 50 deletions

View file

@ -1,34 +1,14 @@
{ instancesFunctions }:
let
inherit (instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
hledgerLabel = "Hledger";
hledgerName = "hledger";
hledgerSubdomain = "finances";
in
{
label = hledgerLabel;
name = hledgerName;
email = {
address0 = "noreply@${domain0}";
};
sops = {
path0 = "${sopsPath}/${hledgerName}";
};
subdomain = hledgerSubdomain;
paths = {
path0 = "${servicePath}/${hledgerLabel}";
path0 = "/mnt/media/storage/${hledgerLabel}";
};
ports = {
port0 = 5000;
};
ssl = {
cert = "${sslPath}/${hledgerSubdomain}.${domain0}/fullchain.pem";
key = "${sslPath}/${hledgerSubdomain}.${domain0}/key.pem";
};
}

View file

@ -66,7 +66,7 @@ in
}
{
name = instances.hledger.label;
url = "https://${instances.hledger.subdomain}.${instances.web.domains.url0}";
url = "http://localhost.${builtins.toString instances.ports.port0}";
tags = [
instances.hledger.name
"hledger"

View file

@ -60,6 +60,7 @@ in
inherit (modules)
syncthing
ollama
hledger
# plasma
# sddm
;

View file

@ -28,20 +28,6 @@ in
];
allow = "edit";
};
caddy = {
virtualHosts = {
"${host}" = {
extraConfig = ''
redir /.well-known/carddav /remote.php/dav/ 301
redir /.well-known/caldav /remote.php/dav/ 301
reverse_proxy ${localhost}:${toString service.ports.port0}
tls ${service.ssl.cert} ${service.ssl.key}
'';
};
};
};
};
environment = {

View file

@ -38,24 +38,11 @@ in
value = dnsConfig;
})
[
"nextcloud"
"jellyfin"
"minecraft"
"ollama"
"syncthing"
"vaultwarden"
"hledger"
]
)
++ (map
(service: {
name = "${instanceName service}.${domain1}";
value = dnsConfig;
})
[
"nextcloud"
"matrix"
"owncast"
]
)
++ (map

View file

@ -10,7 +10,6 @@
"logrotate"
"minecraft"
"ollama"
"hledger"
"upRootNutrition"
# "peertube"
"postgresql"