home-manager/tests/modules/programs/gh/config-file.nix
Robert Helgesson 7e80e034cc
gh: fix attribute paths
This fixes some attribute paths to match recent changes in Nixpkgs.
2021-01-20 18:59:58 +01:00

23 lines
536 B
Nix

{ config, lib, pkgs, ... }:
{
config = {
programs.gh = {
enable = true;
aliases = { co = "pr checkout"; };
editor = "vim";
};
nixpkgs.overlays =
[ (self: super: { 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"}''
}
'';
};
}