users/foo-dogsquared/programs/hledger: init

This commit is contained in:
Gabriel Arazas 2024-12-29 11:46:16 +08:00
parent b38150e094
commit afff3653c5
No known key found for this signature in database
GPG Key ID: 62104B43D00AA360
3 changed files with 21 additions and 1 deletions

View File

@ -22,6 +22,7 @@ in
email.enable = true; email.enable = true;
email.thunderbird.enable = true; email.thunderbird.enable = true;
vs-code.enable = true; vs-code.enable = true;
hledger.enable = true;
custom-homepage = { custom-homepage = {
enable = true; enable = true;
@ -98,7 +99,6 @@ in
home.packages = with pkgs; [ home.packages = with pkgs; [
gopass # An improved version of the password manager for hipsters. gopass # An improved version of the password manager for hipsters.
hledger # Trying to be a good accountant.
]; ];
home.stateVersion = "23.11"; home.stateVersion = "23.11";

View File

@ -9,6 +9,7 @@
./programs/email.nix ./programs/email.nix
./programs/git.nix ./programs/git.nix
./programs/jujutsu.nix ./programs/jujutsu.nix
./programs/hledger.nix
./programs/keys.nix ./programs/keys.nix
./programs/nixvim ./programs/nixvim
./programs/custom-homepage.nix ./programs/custom-homepage.nix

View File

@ -0,0 +1,19 @@
{ config, lib, pkgs, ... }:
let
userCfg = config.users.foo-dogsquared;
cfg = userCfg.programs.hledger;
in
{
options.users.foo-dogsquared.programs.hledger.enable =
lib.mkEnableOption "hledger setup";
config = lib.mkIf cfg.enable {
home.packages = with pkgs; [
hledger
hledger-ui
hledger-web
hledger-utils
];
};
}