refactor(homes/rafiq): move git config to its own module
This commit is contained in:
parent
ed3095a9dc
commit
1bf0680ac4
2 changed files with 29 additions and 24 deletions
25
homes/x86_64-linux/rafiq/programs/git.nix
Normal file
25
homes/x86_64-linux/rafiq/programs/git.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{lib,config,...}:
|
||||
{
|
||||
home.sessionVariables.GIT_CONFIG_GLOBAL = "$HOME/.config/git/config";
|
||||
home.shellAliases = {
|
||||
gs = "git status";
|
||||
gc = "git commit";
|
||||
gcam = "git commit -am";
|
||||
gu = "git push";
|
||||
gy = "git pull";
|
||||
};
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Mohammad Rafiq";
|
||||
userEmail = "rafiq@rrv.sh";
|
||||
signing.key = "~/.ssh/id_ed25519.pub";
|
||||
signing.signByDefault = true;
|
||||
extraConfig = {
|
||||
init.defaultBranch = "prime";
|
||||
push.autoSetupRemote = true;
|
||||
pull.rebase = false;
|
||||
core.editor = "$EDITOR";
|
||||
gpg.format = "ssh";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue