From 65f6d334b3ad5b838c926d4664985d8de6ac7f7d Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 27 Nov 2022 23:28:12 +0300 Subject: [PATCH] users/ledger: move hledger to finance repo --- users/jan/home.nix | 1 - users/modules/ledger.nix | 37 ------------------------------------- 2 files changed, 38 deletions(-) delete mode 100644 users/modules/ledger.nix diff --git a/users/jan/home.nix b/users/jan/home.nix index abd49bb..a3ca2e4 100644 --- a/users/jan/home.nix +++ b/users/jan/home.nix @@ -11,7 +11,6 @@ ../modules/notifications ../modules/file_manager ../modules/mail - ../modules/ledger.nix ../modules/pass.nix ../modules/git.nix diff --git a/users/modules/ledger.nix b/users/modules/ledger.nix deleted file mode 100644 index 4f2583a..0000000 --- a/users/modules/ledger.nix +++ /dev/null @@ -1,37 +0,0 @@ -{ lib, config, pkgs, ... }: - -let - bin = "${pkgs.hledger}/bin/hledger"; - sbin = "${bin} --strict"; - - hledgerAliases = { - hle = bin; - shle = sbin; - }; -in -{ - home.packages = with pkgs; [ - hledger - hledger-ui - hledger-interest - ]; - - home.file = { - "finance/commodities.journal".text = '' - ; Fiat currencies - commodity 1.000,00 RUB - commodity 1.000,00 USD - - ; Investment commodities - - ; Cryptocurrencies - - ; Other - - ; Default commodity - ; D 1.000,00 RUB - ''; - }; - - programs.zsh.shellAliases = lib.mkIf config.programs.zsh.enable hledgerAliases; -}