mirror of
https://forge.katzen.cafe/schrottkatze/nix-configs.git
synced 2024-11-21 21:04:41 +01:00
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:
parent
edd9871bd6
commit
a2b42917f2
|
@ -6,5 +6,6 @@
|
|||
./terminal.nix
|
||||
./flatpak.nix
|
||||
./firewall.nix
|
||||
./git.nix
|
||||
];
|
||||
}
|
||||
|
|
17
modules/git.nix
Normal file
17
modules/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -796,4 +796,10 @@ def lcr [
|
|||
alias gnix = cd ~/nix-configs;
|
||||
alias grepo = cd ~/Documents/repos;
|
||||
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;
|
||||
|
|
Loading…
Reference in a new issue