2020-10-15 20:25:47 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
config = {
|
|
|
|
programs.gh = {
|
|
|
|
enable = true;
|
2021-10-08 21:29:25 +00:00
|
|
|
settings.aliases = { co = "pr checkout"; };
|
|
|
|
settings.editor = "vim";
|
2020-10-15 20:25:47 +00:00
|
|
|
};
|
|
|
|
|
2021-09-26 09:08:45 +00:00
|
|
|
test.stubs.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-10-08 21:29:25 +00:00
|
|
|
aliases:
|
|
|
|
co: pr checkout
|
|
|
|
editor: vim
|
|
|
|
git_protocol: https
|
|
|
|
''
|
2020-10-15 20:25:47 +00:00
|
|
|
}
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|