mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-26 23:14:57 +08:00
* add new user * need to be trusted * parametrize git module * allow all users (in that group) to use nix
44 lines
1 KiB
Nix
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" ];
|
|
};
|
|
};
|
|
};
|
|
}
|