mirror of
https://github.com/nix-community/home-manager
synced 2024-11-26 21:19:45 +01:00
25 lines
514 B
Nix
25 lines
514 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
|
|
''
|
|
}
|
|
'';
|
|
};
|
|
}
|