mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
users/foo-dogsquared/programs/hledger: init
This commit is contained in:
parent
b38150e094
commit
afff3653c5
@ -22,6 +22,7 @@ in
|
||||
email.enable = true;
|
||||
email.thunderbird.enable = true;
|
||||
vs-code.enable = true;
|
||||
hledger.enable = true;
|
||||
|
||||
custom-homepage = {
|
||||
enable = true;
|
||||
@ -98,7 +99,6 @@ in
|
||||
|
||||
home.packages = with pkgs; [
|
||||
gopass # An improved version of the password manager for hipsters.
|
||||
hledger # Trying to be a good accountant.
|
||||
];
|
||||
|
||||
home.stateVersion = "23.11";
|
||||
|
@ -9,6 +9,7 @@
|
||||
./programs/email.nix
|
||||
./programs/git.nix
|
||||
./programs/jujutsu.nix
|
||||
./programs/hledger.nix
|
||||
./programs/keys.nix
|
||||
./programs/nixvim
|
||||
./programs/custom-homepage.nix
|
||||
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user