mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-22 10:19:39 +01:00
20 lines
416 B
Nix
20 lines
416 B
Nix
{
|
|
programs.gh = {
|
|
enable = true;
|
|
settings.aliases = {
|
|
co = "pr checkout";
|
|
};
|
|
settings.editor = "vim";
|
|
};
|
|
|
|
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'
|
|
''}
|
|
'';
|
|
}
|