72904c318c
GitOrigin-RevId: 9bf1f40af124573a54fd208b1f539eb694ef31a6
27 lines
612 B
Nix
27 lines
612 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
{
|
|
config = {
|
|
programs.gh = {
|
|
enable = true;
|
|
aliases = { co = "pr checkout"; };
|
|
editor = "vim";
|
|
};
|
|
|
|
nixpkgs.overlays = [
|
|
(self: super: {
|
|
gitAndTools = super.gitAndTools // {
|
|
gh = pkgs.writeScriptBin "dummy-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","gitProtocol":"https"}''
|
|
}
|
|
'';
|
|
};
|
|
}
|