1

refactor: declare github helper command for repeated use

This commit is contained in:
Himadri Bhattacharjee
2024-03-01 19:34:18 +05:30
parent 4565f61722
commit 660385ee34

View File

@@ -1,5 +1,6 @@
{ config, pkgs, ... }:
let githubHelper = "${pkgs.gh}/bin/gh auth git-credential"; in
{
imports = [ ./gnome.nix ];
@@ -42,8 +43,8 @@
delta.enable = true;
extraConfig = {
credential."https://github.com".helper = "${pkgs.gh}/bin/gh auth git-credential";
credential."https://gist.github.com".helper = "${pkgs.gh}/bin/gh auth git-credential";
credential."https://github.com".helper = githubHelper;
credential."https://gist.github.com".helper = githubHelper;
gpg.format = "ssh";
};
signing.signByDefault = true;