dotfiles/common/users/homeModules/git.nix
sadan 3bca2d74df
use lazygit pr with fixed UI
v49 added a bad UI option with no config to change it

revert to main once https://github.com/jesseduffield/lazygit/pull/4593
is merged and updated in nixpkgs

also refactors lazygit into its own module and removes the config file
2025-05-25 18:21:28 -04:00

56 lines
990 B
Nix

{ pkgs, ... }:
{
imports = [
./pinned.nix
./lazygit.nix
];
home = {
packages = with pkgs; [
git
act
gh
];
file = {
ghcli = {
source = ../../../dotfiles/gh/config.yml;
target = "./.config/gh/config.yml";
};
};
};
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;
};
};
};
};
}