marleyos/modules/home/programs/gh/default.nix

27 lines
381 B
Nix
Raw Normal View History

2024-11-16 15:27:19 -08:00
{
lib,
config,
namespace,
...
}:
let
inherit (lib) mkIf;
inherit (lib.${namespace}) mkEnableModule;
cfg = config.${namespace}.programs.gh;
in
{
options = mkEnableModule "programs.gh";
config = mkIf cfg.enable {
programs.gh = {
enable = true;
gitCredentialHelper.enable = true;
};
programs.gh-dash = {
enable = true;
};
};
}