1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-19 00:09:48 +01:00
home-manager/tests/modules/programs/gh/config-file.nix
Harsh Shandilya d1d950841d gh: include version in settings
Also add an activation script block for allowing gh version 2.40.0 and
later to perform account migration.
2023-12-27 11:42:06 +05:30

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'
''
}
'';
};
}