From 6e37907d7fe3a5c64d601499a233f9365ecb5449 Mon Sep 17 00:00:00 2001 From: Linnnus Date: Thu, 16 Nov 2023 17:23:07 +0100 Subject: home/git+hosts: Remove jq, add gh --- home/git/default.nix | 5 ++++- hosts/common.nix | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/home/git/default.nix b/home/git/default.nix index 8e5575f..3085556 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -19,7 +19,10 @@ in { init.defaultBranch = "master"; credential = { - "https://github.com/".username = "linnnus"; + "https://github.com/" = { + username = "linnnus"; + helper = "${pkgs.gh}/bin/gh auth git-credential"; + }; helper = (optional isDarwin "osxkeychain") ++ ["cache"]; }; }; diff --git a/hosts/common.nix b/hosts/common.nix index 2378352..d9b868c 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -33,8 +33,7 @@ # Very basic system administration tools. environment.systemPackages = with pkgs; [ tree - jc - jq + gh vim comma nix-index -- cgit v1.2.3