nixos-config/home/git.nix
Sridhar Ratnakumar ab6609319a
Add 2nd user (#24)
* add new user

* need to be trusted

* parametrize git module

* allow all users (in that group) to use nix
2022-12-01 16:49:27 -05:00

44 lines
1 KiB
Nix

{ userName, userEmail }:
{ pkgs, ... }:
{
home.packages = [ pkgs.git-lfs ];
programs.git = {
package = pkgs.gitAndTools.gitFull;
enable = true;
inherit userName userEmail;
aliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
# p = "pull --rebase";
pu = "push";
};
ignores = [ "*~" "*.swp" ];
extraConfig = {
init.defaultBranch = "master"; # based.
core.editor = "nvim";
#protocol.keybase.allow = "always";
credential.helper = "store --file ~/.git-credentials";
pull.rebase = "false";
# For supercede
core.symlinks = true;
};
};
programs.lazygit = {
enable = true;
settings = {
# This looks better with the kitty theme.
gui.theme = {
lightTheme = false;
activeBorderColor = [ "white" "bold" ];
inactiveBorderColor = [ "white" ];
selectedLineBgColor = [ "reverse" "white" ];
};
};
};
}