mirror of
https://github.com/nix-community/home-manager
synced 2024-12-21 01:09:47 +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"}''
|
|
}
|
|
'';
|
|
};
|
|
}
|