config/modules/home/apps/tools/gh/default.nix

25 lines
345 B
Nix
Raw Normal View History

2024-05-27 03:11:41 -04:00
{
lib,
config,
pkgs,
...
}:
with lib;
with lib.custom; let
cfg = config.apps.tools.gh;
in {
options.apps.tools.gh = with types; {
enable = mkBoolOpt false "Enable GitHub CLI";
};
config = mkIf cfg.enable {
programs.gh = {
enable = true;
extensions = with pkgs; [
pkgs.gh-dash
];
};
};
}