33 lines
784 B
Nix
33 lines
784 B
Nix
{ pkgs, lib, ... }:
|
|
|
|
{
|
|
# Git
|
|
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.git.enable
|
|
# Aliases config imported in flake.
|
|
programs.git.enable = true;
|
|
|
|
programs.git.extraConfig = {
|
|
core.editor = "${pkgs.neovim-remote}/bin/nvr --remote-wait-silent -cc split";
|
|
diff.colorMoved = "default";
|
|
pull.rebase = true;
|
|
init.defaultBranch = "main";
|
|
};
|
|
|
|
programs.git.ignores = [
|
|
".DS_Store"
|
|
];
|
|
|
|
programs.git.userEmail = "mat@mat.services";
|
|
programs.git.userName = "mat ess";
|
|
|
|
# Enhanced diffs
|
|
programs.git.delta.enable = true;
|
|
|
|
|
|
# GitHub CLI
|
|
# https://rycee.gitlab.io/home-manager/options.html#opt-programs.gh.enable
|
|
# Aliases config imported in flake.
|
|
programs.gh.enable = true;
|
|
programs.gh.settings.git_protocol = "ssh";
|
|
}
|