Enable git's credential manager
This commit is contained in:
parent
31b758d884
commit
42cdcd29c1
1 changed files with 6 additions and 0 deletions
|
@ -14,6 +14,9 @@ in
|
||||||
../gitui
|
../gitui
|
||||||
../lazygit
|
../lazygit
|
||||||
];
|
];
|
||||||
|
|
||||||
|
home.packages = [ pkgs.git-credential-manager ];
|
||||||
|
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = pkgs.gitAndTools.gitFull;
|
package = pkgs.gitAndTools.gitFull;
|
||||||
|
@ -27,6 +30,9 @@ in
|
||||||
user.signingKey = "/home/${username}/.ssh/id_rsa";
|
user.signingKey = "/home/${username}/.ssh/id_rsa";
|
||||||
gpg.format = "ssh";
|
gpg.format = "ssh";
|
||||||
commit.gpgsign = true;
|
commit.gpgsign = true;
|
||||||
|
|
||||||
|
credential.helper = "manager";
|
||||||
|
credential.credentialStore = "cache";
|
||||||
};
|
};
|
||||||
|
|
||||||
userName = config.name;
|
userName = config.name;
|
||||||
|
|
Loading…
Add table
Reference in a new issue