Files
nix-config/home/dev/git.nix
T
imbytecat 215e09910c fix: 修复首次 darwin-rebuild 的构建错误
- nix.enable=false 兼容 Determinate Nix (macOS)
- 禁用 catppuccin.nvim (require check 失败)
- fl-clash 用完整 tap 路径放入 casks
- 修复 SSH/git 废弃选项警告
- 更新 flake.lock
2026-04-10 23:30:35 +08:00

59 lines
1.1 KiB
Nix

{ ... }:
{
programs.git = {
enable = true;
signing.format = null;
settings = {
user = {
name = "imbytecat";
email = "imbytecat@gmail.com";
};
merge.conflictstyle = "zdiff3";
pull.rebase = true;
push.autoSetupRemote = true;
init.defaultBranch = "main";
rerere.enabled = true;
diff.algorithm = "histogram";
core.autocrlf = "input";
};
};
programs.delta = {
enable = true;
enableGitIntegration = true;
options = {
navigate = true;
side-by-side = true;
line-numbers = true;
};
};
programs.lazygit = {
enable = true;
settings = {
gui = {
nerdFontsVersion = "3";
showBottomLine = false;
};
git.paging.pager = "delta --paging=never";
update.method = "never";
disableStartupPopups = true;
};
};
programs.gh = {
enable = true;
settings.git_protocol = "ssh";
};
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks."*" = {
identityFile = "~/.ssh/id_ed25519";
addKeysToAgent = "yes";
};
};
}