Commit 5f19f2173a55

Vincent Demeester <vincent@sbr.pm>
2025-12-19 23:09:50
feat(finance): add hledger personal finance module
- Enable plain text accounting with hledger integration - Provide convenient shell aliases for finance workflows - Configure default journal location for seamless usage Co-Authored-By: Claude <noreply@anthropic.com> Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 3a0f7cf
Changed files (3)
home
systems
kyushu
home/common/desktop/default.nix
@@ -9,6 +9,7 @@
     # FIXME why the infinite recusion
     (./. + "/${desktop}/default.nix")
 
+    ./finance.nix
     ./firefox.nix
     ./gtk.nix
     ./kitty.nix
home/common/desktop/finance.nix
@@ -0,0 +1,25 @@
+{ pkgs, ... }:
+let
+  financeAliases = {
+    fin = "hledger";
+    finui = "hledger-ui";
+    finweb = "hledger-web --serve";
+    finimport = "~/desktop/finance/scripts/import-csv.sh";
+    finrec = "~/desktop/finance/scripts/reconcile.sh";
+  };
+in
+{
+  home.packages = with pkgs; [
+    hledger
+    hledger-ui
+    hledger-web
+  ];
+
+  home.file.".hledgerrc".text = ''
+    # Default journal file
+    --file ~/desktop/finance/main.journal
+  '';
+
+  programs.bash.shellAliases = financeAliases;
+  programs.zsh.shellAliases = financeAliases;
+}
systems/kyushu/home.nix
@@ -45,12 +45,6 @@ in
     qmk
     qmk_hid
 
-    beancount
-    beancount-language-server
-    beanquery
-    beanhub-cli
-    fava
-
     startpaac
 
     batzconverter