dotfiles/common/users/homeModules/git.nix
sadan 6da6046b73
Update to 25.05
some bugs with new version i dont have time to sort out yet

update js corepack

pin lazygit

insane ux choice with no config setting

completions are now built-in

pin to old nerdfonts

I dont want to do this, but the new version just throw error after error
at me

pin neovim
2025-05-24 02:50:24 -04:00

67 lines
1.3 KiB
Nix

{ pkgs, config, ... }:
{
imports = [
./pinned.nix
];
home = {
packages = with pkgs; [
git
pinned.lazygit
act
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";
};
sessionVariables = {
LG_CONFIG_FILE = "/home/${config.home.username}/.config/lazygit/tokyonight_night.conf";
};
};
programs = {
git = {
enable = true;
userName = "sadan";
userEmail = "117494111+sadan4@users.noreply.github.com";
lfs = {
enable = true;
};
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;
};
};
};
};
}