add git setup to config

in light of significant inconsistencies in the git setups of almost
all of my devices, this is something that urgently should be fixed.
This commit is contained in:
Schrottkatze 2023-11-20 08:54:29 +01:00
parent edd9871bd6
commit a2b42917f2
3 changed files with 25 additions and 1 deletions

View file

@ -6,5 +6,6 @@
./terminal.nix ./terminal.nix
./flatpak.nix ./flatpak.nix
./firewall.nix ./firewall.nix
./git.nix
]; ];
} }

17
modules/git.nix Normal file
View file

@ -0,0 +1,17 @@
{ ... }: {
home-manager.users.jade = { pkgs, ... }: {
programs.git = {
enable = true;
userName = "Schrottkatze";
userEmail = "git@schrottkatze.de";
aliases = {
a = "add";
c = "commit";
ca = "commit --all";
p = "push";
pl = "pull";
s = "status";
};
};
};
}

View file

@ -796,4 +796,10 @@ def lcr [
alias gnix = cd ~/nix-configs; alias gnix = cd ~/nix-configs;
alias grepo = cd ~/Documents/repos; alias grepo = cd ~/Documents/repos;
alias wh = wormhole-rs; alias wh = wormhole-rs;
alias gst = git status;
alias ga = git add;
alias gc = git commit;
alias gca = git commit --all;
alias gp = git push;
alias gpl = git pull;
alias gs = git status;