This commit is contained in:
2026-10-02 13:26:17 +02:00
parent 57d349c91d
commit bfe5953c39
2 changed files with 31 additions and 0 deletions

View File

@@ -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
View 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";
};
};
};
}