mirror of
https://github.com/kmein/niveum
synced 2026-03-20 03:51:07 +01:00
hledger: add hledger-git entry
This commit is contained in:
@@ -3,7 +3,12 @@ with lib;
|
|||||||
let
|
let
|
||||||
cfg = config.niveum.hledger;
|
cfg = config.niveum.hledger;
|
||||||
hledger-git = pkgs.writers.writeDashBin "hledger-git" ''
|
hledger-git = pkgs.writers.writeDashBin "hledger-git" ''
|
||||||
${pkgs.git}/bin/git -C $(dirname $LEDGER_FILE) $*
|
GIT="${pkgs.git}/bin/git -C $(dirname $LEDGER_FILE)"
|
||||||
|
if [ "$1" = entry ]; then
|
||||||
|
$GIT commit --all --message="$(date +%F)"
|
||||||
|
else
|
||||||
|
$GIT $*
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
options.niveum.hledger = {
|
options.niveum.hledger = {
|
||||||
|
|||||||
Reference in New Issue
Block a user