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