1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-10 02:36:54 +00:00
home-manager/tests/modules/programs/gh/config-file.nix

21 lines
430 B
Nix
Raw Normal View History

2020-10-15 22:25:47 +02:00
{
programs.gh = {
enable = true;
settings.aliases = { co = "pr checkout"; };
settings.editor = "vim";
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" ''
aliases:
co: pr checkout
editor: vim
git_protocol: https
version: '1'
''
}
'';
2020-10-15 22:25:47 +02:00
}