✨ Use same package of git
This commit is contained in:
parent
3552314e69
commit
909d3b9b21
@ -1,13 +1,15 @@
|
|||||||
{ pkgs, ... }:
|
{ pkgs, ... }:
|
||||||
|
|
||||||
{
|
{
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [ git-crypt ];
|
||||||
git-crypt
|
|
||||||
libsecret
|
|
||||||
];
|
|
||||||
|
|
||||||
programs.git = {
|
programs.git =
|
||||||
|
let
|
||||||
|
package = pkgs.git.override { withLibsecret = true; };
|
||||||
|
in
|
||||||
|
{
|
||||||
enable = true;
|
enable = true;
|
||||||
|
package = package;
|
||||||
userName = "Martin Berg Alstad";
|
userName = "Martin Berg Alstad";
|
||||||
userEmail = "git@martials.no";
|
userEmail = "git@martials.no";
|
||||||
|
|
||||||
@ -25,7 +27,7 @@
|
|||||||
extraConfig = {
|
extraConfig = {
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
safe.directory = "/etc/nixos";
|
safe.directory = "/etc/nixos";
|
||||||
credential.helper = "${pkgs.git.override { withLibsecret = true; }}/bin/git-credential-libsecret";
|
credential.helper = "${package}/bin/git-credential-libsecret";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user