diff --git a/modules/programs/gh.nix b/modules/programs/gh.nix index 41d6aa1d..a4f4e17c 100644 --- a/modules/programs/gh.nix +++ b/modules/programs/gh.nix @@ -45,7 +45,7 @@ in { }; config = mkIf cfg.enable { - home.packages = [ pkgs.gitAndTools.gh ]; + home.packages = [ pkgs.gh ]; xdg.configFile."gh/config.yml".text = builtins.toJSON { inherit (cfg) aliases editor gitProtocol; }; diff --git a/tests/modules/programs/gh/config-file.nix b/tests/modules/programs/gh/config-file.nix index 0c018694..8d8f95fd 100644 --- a/tests/modules/programs/gh/config-file.nix +++ b/tests/modules/programs/gh/config-file.nix @@ -8,13 +8,8 @@ editor = "vim"; }; - nixpkgs.overlays = [ - (self: super: { - gitAndTools = super.gitAndTools // { - gh = pkgs.writeScriptBin "dummy-gh" ""; - }; - }) - ]; + nixpkgs.overlays = + [ (self: super: { gh = pkgs.writeScriptBin "dummy-gh" ""; }) ]; nmt.script = '' assertFileExists home-files/.config/gh/config.yml