nix-dotfiles/home-manager/modules/lazygit.nix
2026-01-01 20:28:16 -07:00

27 lines
599 B
Nix

{
pkgs,
config,
...
}: {
home.packages = with pkgs; [
lazygit
git
git-lfs
gh
diff-so-fancy
];
programs.git = {
enable = true;
includes = [
{path = "${config.home.homeDirectory}/nix/.secrets/.gitconfig";}
];
settings = {
credential.helper = "store --file=${config.home.homeDirectory}/nix/.secrets/.git-credentials";
init.defaultBranch = "master";
push.autoSetupRemote = true;
pull.rebase = true;
core.pager = "diff-so-fancy | less --tabs=4 -RF";
interactive.diffFilter = "diff-so-fancy --patch";
};
};
}