Use libsecret instead of git-credential-store

This commit is contained in:
Evie Litherland-Smith 2023-08-28 16:07:58 +01:00
parent d3c55cc9f8
commit 2aba7ac0e0
2 changed files with 6 additions and 4 deletions

View file

@ -1,10 +1,10 @@
{ pkgs, ... }:
{
imports = [ ../git ];
programs.emacs.enable = true;
home.packages = with pkgs; [
# Emacs dependencies
git
ripgrep
coreutils
cmake

View file

@ -1,7 +1,9 @@
{ lib, tokyonight, ... }: {
xdg.configFile."git/tokyonight_night.gitconfig".source = "${tokyonight}/extras/delta/tokyonight_night.gitconfig";
{ lib, pkgs, tokyonight, ... }: {
xdg.configFile."git/tokyonight_night.gitconfig".source =
"${tokyonight}/extras/delta/tokyonight_night.gitconfig";
programs.git = {
enable = true;
package = pkgs.gitFull;
userName = "Evie Litherland-Smith";
userEmail = lib.mkDefault "evie@xenia.me.uk";
includes = [{ path = "tokyonight_night.gitconfig"; }];
@ -19,7 +21,7 @@
extraConfig = {
pull.rebase = false;
init.defaultBranch = "main";
credential.helper = "store";
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
};
};
}