mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 12:10:45 +02:00
add git configuraiton
This commit is contained in:
1
home.nix
1
home.nix
@@ -24,6 +24,7 @@
|
||||
./modules/mako.nix
|
||||
./modules/ssh.nix
|
||||
./modules/bat.nix
|
||||
./modules/git.nix
|
||||
];
|
||||
|
||||
home.stateVersion = "25.11"; # Please read the comment before changing.
|
||||
|
||||
45
modules/git.nix
Normal file
45
modules/git.nix
Normal file
@@ -0,0 +1,45 @@
|
||||
{ pkgs, ... }:
|
||||
|
||||
{
|
||||
home.packages = with pkgs; [
|
||||
git-graph
|
||||
];
|
||||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
settings = {
|
||||
user = {
|
||||
name = "Szymon P";
|
||||
email = "szymon_jozef@proton.me";
|
||||
};
|
||||
init.defaultBranch = "master";
|
||||
push.autoSetupRemote = true;
|
||||
core.editor = "nvim";
|
||||
};
|
||||
|
||||
signing = {
|
||||
key = "szymon_jozef@proton.me";
|
||||
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;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user