From bfe5953c395361d14ac4cf574530fa9d581641d0 Mon Sep 17 00:00:00 2001 From: djairoh Date: Fri, 2 Oct 2026 13:26:17 +0200 Subject: [PATCH] hm: git --- modules/dev/default.nix | 4 ++++ modules/dev/git.nix | 27 +++++++++++++++++++++++++++ 2 files changed, 31 insertions(+) create mode 100644 modules/dev/git.nix diff --git a/modules/dev/default.nix b/modules/dev/default.nix index 328472e..5a1e835 100644 --- a/modules/dev/default.nix +++ b/modules/dev/default.nix @@ -8,6 +8,10 @@ let }; in { + imports = [ + ./git.nix + ]; + programs.java.enable = true; programs.nix-ld.libraries = with pkgs; [ stdenv.cc.cc.lib diff --git a/modules/dev/git.nix b/modules/dev/git.nix new file mode 100644 index 0000000..3fb21e1 --- /dev/null +++ b/modules/dev/git.nix @@ -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"; + }; + }; + }; +}