diff --git a/system/desktop/packages.nix b/system/desktop/packages.nix index db53c7e..941778c 100644 --- a/system/desktop/packages.nix +++ b/system/desktop/packages.nix @@ -109,6 +109,12 @@ let TERM=xterm-mono ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/.hledger-borrow "$@" ''; + bank-report = pkgs.writers.writeDashBin "bank-report" # sh + '' + ${pkgs.hledger}/bin/hledger --file ~/finance/hledger/all.journal balance -M -B date:$(date +%Y-%m -d 'last year').. + ${pkgs.hledger}/bin/hledger --file ~/finance/hledger/all.journal balance -M -B date:$(date +%Y-%m -d 'last year').. --depth 1 + ''; + bank = pkgs.writers.writeDashBin "bank" # sh '' ${pkgs.hledger-ui}/bin/hledger-ui --file ~/finance/hledger/all.journal @@ -211,6 +217,7 @@ in { borrow bank + bank-report (bank-old "2021") (bank-old "2020")