dotfiles/common/users/homeModules/git.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

2024-11-26 17:01:58 -05:00
{ pkgs, ... }: {
home = {
packages = with pkgs; [
git
lazygit
gh
];
file = {
lazygit = {
recursive = true;
source = ../dotfiles/lazygit;
target = "./.config/lazygit";
};
gh = {
source = ../dotfiles/gh/config.yml;
target = "./.config/gh/config.yml";
};
};
shellAliases = {
lg = "lazygit";
2024-11-26 17:16:44 -05:00
};
2024-11-26 17:17:26 -05:00
sessionVariables = {
2024-11-26 17:01:58 -05:00
LG_CONFIG_FILE = "/home/${config.home.username}/.config/lazygit/tokyonight_night.conf";
};
2024-11-26 17:16:44 -05:00
};
2024-10-02 17:19:34 -04:00
programs = {
git = {
enable = true;
userName = "sadan";
userEmail = "117494111+sadan4@users.noreply.github.com";
extraConfig = {
gpg = {
format = "ssh";
};
user = {
signingkey = "~/.ssh/id_ed25519";
};
commit = {
gpgsign = true;
};
core = {
autocrlf = "input";
};
pull = {
rebase = true;
};
push = {
autoSetupRemote = true;
};
init = {
defaultBranch = "main";
};
rerere = {
enabled = true;
};
};
};
};
}