From 51140417d043ba588076a61b0dd57e72f2096088 Mon Sep 17 00:00:00 2001 From: jeirmeister Date: Wed, 30 Oct 2024 02:41:34 -0700 Subject: [PATCH] Updated git.nix to include configuration for global credential storage --- home.nix | 7 +++++++ users/jeirmeister/programs/git.nix | 2 ++ 2 files changed, 9 insertions(+) diff --git a/home.nix b/home.nix index c12e743..3af0864 100644 --- a/home.nix +++ b/home.nix @@ -50,6 +50,13 @@ in unzip p7zip file + + # Documentation & reference + tldr + + # Productivity + todoist + todoist-electron ]; }; diff --git a/users/jeirmeister/programs/git.nix b/users/jeirmeister/programs/git.nix index 765668c..f877057 100644 --- a/users/jeirmeister/programs/git.nix +++ b/users/jeirmeister/programs/git.nix @@ -4,12 +4,14 @@ { programs.git = { enable = true; + package = pkgs.git.override { withLibsecret = true; }; lfs.enable = true; userName = "jeirmeister"; userEmail = "jeir@jeirslab.xyz"; extraConfig = { init.defaultBranch = "main"; pull.rebase = false; + credential.helper = "${pkgs.libsecret}/bin/git-credential-libsecret"; }; ignores = [ ".DS_Store"