hm: git
This commit is contained in:
@@ -8,6 +8,10 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
imports = [
|
||||
./git.nix
|
||||
];
|
||||
|
||||
programs.java.enable = true;
|
||||
programs.nix-ld.libraries = with pkgs; [
|
||||
stdenv.cc.cc.lib
|
||||
|
||||
27
modules/dev/git.nix
Normal file
27
modules/dev/git.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{ ... }:
|
||||
|
||||
{
|
||||
home-manager.users.djai.programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "djairoh";
|
||||
email = "djairoh@mykolab.com";
|
||||
};
|
||||
|
||||
credential.helper "/usr/lib/git-core/git-credential-libsecret";
|
||||
|
||||
init.defaultBranch = "main";
|
||||
pull.rebase = false;
|
||||
push.autoSetupRemote = true;
|
||||
|
||||
alias = {
|
||||
"br" = "branch";
|
||||
"co" = "checkout";
|
||||
"lol" = "log --oneline --graph --decorate";
|
||||
"st" = "status";
|
||||
"wt" = "worktree";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user