mirror of
https://github.com/nix-community/home-manager
synced 2024-11-14 15:19:45 +01:00
7e80e034cc
This fixes some attribute paths to match recent changes in Nixpkgs.
22 lines
536 B
Nix
22 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"}''
|
|
}
|
|
'';
|
|
};
|
|
}
|