From b6e41d866abf7efc9bbb50b87c91f09dff9f2638 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 21 Jan 2025 22:52:36 -0600 Subject: [PATCH] feat: hledger test --- config/instances/config/hledger.nix | 0 .../config/bookmarks/config/flake/selfHosted.nix | 14 ++++++++++++-- nixos/modules/services/hledger.nix | 10 ++++++++++ 3 files changed, 22 insertions(+), 2 deletions(-) mode change 100644 => 100755 config/instances/config/hledger.nix mode change 100644 => 100755 nixos/modules/services/hledger.nix diff --git a/config/instances/config/hledger.nix b/config/instances/config/hledger.nix old mode 100644 new mode 100755 diff --git a/home/modules/gui/apps/browsers/firefox/config/bookmarks/config/flake/selfHosted.nix b/home/modules/gui/apps/browsers/firefox/config/bookmarks/config/flake/selfHosted.nix index 7029de9..3cb6626 100755 --- a/home/modules/gui/apps/browsers/firefox/config/bookmarks/config/flake/selfHosted.nix +++ b/home/modules/gui/apps/browsers/firefox/config/bookmarks/config/flake/selfHosted.nix @@ -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" diff --git a/nixos/modules/services/hledger.nix b/nixos/modules/services/hledger.nix old mode 100644 new mode 100755 index 7026009..7523526 --- a/nixos/modules/services/hledger.nix +++ b/nixos/modules/services/hledger.nix @@ -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";