24 lines
571 B
Nix
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";
|
|
};
|
|
};
|
|
}
|