move stuff around

This commit is contained in:
2026-02-23 11:11:56 +01:00
parent d74b3a5109
commit f2ef0c0b16
16 changed files with 77 additions and 17 deletions

50
modules/cli/git.nix Normal file
View File

@@ -0,0 +1,50 @@
{
pkgs,
full_name,
email,
...
}:
{
home.packages = with pkgs; [
git-graph
];
programs.git = {
enable = true;
settings = {
user = {
name = full_name;
email = email;
};
init.defaultBranch = "master";
push.autoSetupRemote = true;
core.editor = "nvim";
};
signing = {
key = email;
signByDefault = true;
};
ignores = [
"*~"
"*.swp"
".DS_Store"
"node_modules"
"result"
"__pycache__"
];
};
programs.delta = {
enable = true;
enableGitIntegration = true;
};
services.gpg-agent = {
enable = true;
pinentry.package = pkgs.pinentry-curses;
};
}