mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 16:57:55 +00:00
20 lines
360 B
Nix
20 lines
360 B
Nix
{ 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
|
|
];
|
|
};
|
|
}
|