Add additional git configuration
This commit is contained in:
parent
36cf8102c9
commit
f16ed2e1b0
|
@ -4,6 +4,7 @@
|
||||||
imports = [
|
imports = [
|
||||||
./programs/vim.nix
|
./programs/vim.nix
|
||||||
./programs/gpg.nix
|
./programs/gpg.nix
|
||||||
|
./programs/git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
# Self-hosting
|
# Self-hosting
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
{ pkgs, ... }: {
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
git-credential-manager
|
||||||
|
];
|
||||||
|
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
package = pkgs.gitFull;
|
||||||
|
extraConfig.init.defaultBranch = "main";
|
||||||
|
|
||||||
|
extraConfig.credential = {
|
||||||
|
helper = "store";
|
||||||
|
credentialStore = "store";
|
||||||
|
};
|
||||||
|
|
||||||
|
aliases = {
|
||||||
|
tree = "log --oneline --decorate --all --graph";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Binary file not shown.
Loading…
Reference in New Issue