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 let
inherit (instancesFunctions)
domain0
servicePath
sslPath
sopsPath
;
hledgerLabel = "Hledger"; hledgerLabel = "Hledger";
hledgerName = "hledger"; hledgerName = "hledger";
hledgerSubdomain = "finances";
in in
{ {
label = hledgerLabel; label = hledgerLabel;
name = hledgerName; name = hledgerName;
email = {
address0 = "noreply@${domain0}";
};
sops = {
path0 = "${sopsPath}/${hledgerName}";
};
subdomain = hledgerSubdomain;
paths = { paths = {
path0 = "${servicePath}/${hledgerLabel}"; path0 = "/mnt/media/storage/${hledgerLabel}";
}; };
ports = { ports = {
port0 = 5000; 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; name = instances.hledger.label;
url = "https://${instances.hledger.subdomain}.${instances.web.domains.url0}"; url = "http://localhost.${builtins.toString instances.ports.port0}";
tags = [ tags = [
instances.hledger.name instances.hledger.name
"hledger" "hledger"

View file

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

View file

@ -28,20 +28,6 @@ in
]; ];
allow = "edit"; 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 = { environment = {

View file

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

View file

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