Files
dendritic/modules/programs/git.nix
T
John Lancaster 9aadd03d66 lzg alias
2026-03-26 22:24:34 -05:00

24 lines
571 B
Nix

{ self, inputs, ... }: {
flake.modules.homeManager.git = { config, pkgs, lib, ... }: {
home.packages = with pkgs; [
git-credential-oauth
];
programs.git = {
enable = true;
settings = {
credential.helper = "store --file ~/.git-credentials";
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
};
programs.lazygit = {
enable = true;
enableBashIntegration = true;
enableZshIntegration = true;
};
home.shellAliases = {
"lzg" = "lazygit";
};
};
}