# nixos-config - My current NixOS configuration # # Copyright (C) 2025 Benedikt Peetz # SPDX-License-Identifier: GPL-3.0-or-later # # This file is part of my nixos-config. # # You should have received a copy of the License along with this program. # If not, see . { config, lib, pkgs, libraries, ... }: let cfg = config.soispha.hledger; in { options.soispha.hledger = { enable = libraries.base.options.mkEnable "hledger"; }; config = lib.mkIf cfg.enable { environment.variables = { LEDGER_FILE = "${config.home-manager.users.soispha.xdg.dataHome}/hledger/2025.journal"; }; home-manager.users.soispha = { home.packages = [ pkgs.hledger ]; xdg.configFile = { "hledger/hledger.conf".text = # ledger '' # Actually enforce more checks. --strict # Use boxdrawing characters when possible. --pretty ''; }; }; }; }