2020-10-15 20:25:47 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.gh = {
|
|
|
|
enable = true;
|
|
|
|
aliases = { co = "pr checkout"; };
|
|
|
|
editor = "vim";
|
|
|
|
};
|
|
|
|
|
2021-01-20 17:59:58 +00:00
|
|
|
nixpkgs.overlays =
|
|
|
|
[ (self: super: { gh = pkgs.writeScriptBin "dummy-gh" ""; }) ];
|
2020-10-15 20:25:47 +00:00
|
|
|
|
|
|
|
nmt.script = ''
|
|
|
|
assertFileExists home-files/.config/gh/config.yml
|
|
|
|
assertFileContent home-files/.config/gh/config.yml ${
|
|
|
|
builtins.toFile "config-file.yml" ''
|
2021-02-27 20:42:56 +00:00
|
|
|
{"aliases":{"co":"pr checkout"},"editor":"vim","git_protocol":"https"}''
|
2020-10-15 20:25:47 +00:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|