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