feat: hledger test

This commit is contained in:
Nick 2025-01-21 22:52:36 -06:00
parent 1da13e96b6
commit b6e41d866a
3 changed files with 22 additions and 2 deletions

0
config/instances/config/hledger.nix Normal file → Executable file
View file

View file

@ -64,6 +64,16 @@ in
];
keyword = instances.forgejo.label;
}
{
name = instances.hledger.label;
url = "https://${instances.hledger.subdomain}.${instances.web.domains.url0}";
tags = [
instances.hledger.name
"hledger"
"finances"
];
keyword = instances.hledger.label;
}
{
name = "${instances.jellyfin.label} (Internet)";
url = "https://${instances.jellyfin.name}.${instances.web.domains.url0}";
@ -78,7 +88,7 @@ in
}
{
name = instances.mastodon.label;
url = "https://${instances.web.domains.url1}";
url = "https://${instances.mastodon.subdomain}.${instances.web.domains.url3}";
tags = [
instances.mastodon.name
"mast"
@ -143,7 +153,7 @@ in
}
{
name = instances.peertube.label;
url = "https://${instances.peertube.subdomain}.${instances.web.domains.url1}";
url = "https://${instances.peertube.subdomain}.${instances.web.domains.url3}";
tags = [
instances.peertube.name
"peer"

10
nixos/modules/services/hledger.nix Normal file → Executable file
View file

@ -1,5 +1,6 @@
{
flake,
pkgs,
...
}:
let
@ -40,6 +41,15 @@ in
};
};
environment = {
# enableAllTerminfo = true;
systemPackages = builtins.attrValues {
inherit (pkgs)
hledger
;
};
};
fileSystems."/var/lib/${service.name}" = {
device = service.paths.path0;
fsType = "none";