feat(config): use SSH git protocol with gh credential helper
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
(defvar elpaca-directory (expand-file-name "elpaca/" user-emacs-directory))
|
||||
(defvar elpaca-builds-directory (expand-file-name "builds/" elpaca-directory))
|
||||
(defvar elpaca-repos-directory (expand-file-name "repos/" elpaca-directory))
|
||||
(defvar elpaca-order '(elpaca :repo "https://github.com/progfolio/elpaca.git"
|
||||
(defvar elpaca-order '(elpaca :repo "git@github.com:progfolio/elpaca.git"
|
||||
:ref nil :depth 1 :inherit ignore
|
||||
:files (:defaults "elpaca-test.el" (:exclude "extensions"))
|
||||
:build (:not elpaca--activate-package)))
|
||||
|
||||
@@ -11,6 +11,8 @@
|
||||
(concat (file-name-directory load-file-name) filename))
|
||||
|
||||
(load-file (expand-file-name "elpaca-installer.el" user-emacs-directory))
|
||||
;; Default hosted git clones to SSH (e.g., git@github.com:owner/repo.git).
|
||||
(setq elpaca-order-defaults (plist-put elpaca-order-defaults :protocol 'ssh))
|
||||
(elpaca elpaca-use-package (elpaca-use-package-mode))
|
||||
(setq use-package-enable-imenu-support t)
|
||||
(setq use-package-always-ensure t)
|
||||
|
||||
@@ -100,3 +100,7 @@
|
||||
smudge = git-lfs smudge -- %f
|
||||
process = git-lfs filter-process
|
||||
required = true
|
||||
[credential "https://github.com"]
|
||||
helper = !/run/current-system/sw/bin/gh auth git-credential
|
||||
[credential "https://gist.github.com"]
|
||||
helper = !/run/current-system/sw/bin/gh auth git-credential
|
||||
|
||||
@@ -5,6 +5,12 @@
|
||||
./dotfiles-links.nix
|
||||
];
|
||||
|
||||
programs.git.enable = true;
|
||||
programs.gh = {
|
||||
enable = true;
|
||||
settings.git_protocol = "ssh";
|
||||
};
|
||||
|
||||
# Hyprland config starts this target on login (see `dotfiles/config/hypr/hyprland.conf`).
|
||||
systemd.user.targets.hyprland-session = {
|
||||
Unit = {
|
||||
|
||||
Reference in New Issue
Block a user