feat: added hledger and restructured some home stuff

This commit is contained in:
Nick 2025-01-22 02:13:08 -06:00
parent 4db6929078
commit f642608281
13 changed files with 23 additions and 4 deletions

View file

@ -8,7 +8,6 @@ let
in
{
label = hledgerLabel;
email = dummy;
name = hledgerName;
paths = {
path0 = "/mnt/media/storage/${hledgerLabel}";

View file

@ -0,0 +1,11 @@
{
pkgs,
...
}:
{
home.packages = builtins.attrValues {
inherit (pkgs)
ani-cli
;
};
}

View file

@ -0,0 +1,10 @@
let
content = builtins.readDir ./.;
dirContent = builtins.filter (n: content.${n} == "directory") (builtins.attrNames content);
importList = map (name: ./. + "/${name}") dirContent;
in
{
imports = importList;
}

View file

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

View file

@ -13,14 +13,13 @@ let
;
service = hledger;
localhost = web.localhost.address0;
host = "${service.subdomain}.${web.domains.url0}";
in
{
services = {
hledger-web = {
enable = true;
host = localhost;
baseUrl = "https://${host}";
# baseUrl = "https://${host}";
stateDir = service.paths.path0;
port = service.ports.port0;
journalFiles = [