depot/third_party/home-manager/tests/modules/programs/gh/config-file.nix
Default email c6444ecc3c Project import generated by Copybara.
GitOrigin-RevId: 51e44a13acea71b36245e8bd8c7db53e0a3e61ee
2024-01-05 12:06:15 +01:00

26 lines
537 B
Nix

{ config, lib, pkgs, ... }:
{
config = {
programs.gh = {
enable = true;
settings.aliases = { co = "pr checkout"; };
settings.editor = "vim";
};
test.stubs.gh = { };
nmt.script = ''
assertFileExists home-files/.config/gh/config.yml
assertFileContent home-files/.config/gh/config.yml ${
builtins.toFile "config-file.yml" ''
aliases:
co: pr checkout
editor: vim
git_protocol: https
version: '1'
''
}
'';
};
}