27 lines
381 B
Nix
27 lines
381 B
Nix
|
{
|
||
|
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;
|
||
|
};
|
||
|
};
|
||
|
}
|