about summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/by-name/hl/lhedger/module.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/by-name/hl/lhedger/module.nix b/modules/by-name/hl/lhedger/module.nix
index 16592f2b..68de85d0 100644
--- a/modules/by-name/hl/lhedger/module.nix
+++ b/modules/by-name/hl/lhedger/module.nix
@@ -29,6 +29,16 @@ in {
     home-manager.users.soispha = {
       home.packages = [
         pkgs.hledger
+
+        (pkgs.writeShellApplication {
+          name = "hledger-edit";
+
+          text = ''
+            "$EDITOR" ${lib.strings.escapeShellArg ledgerFile}
+          '';
+
+          inheritPath = true; # needs access to nvim
+        })
       ];
 
       xdg.configFile = {