Configure git
This commit is contained in:
parent
ea8f52a668
commit
0a790ae727
2 changed files with 75 additions and 22 deletions
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./modules/custom-build-vm.nix
|
||||
./modules/custom-sops-nix.nix
|
||||
./modules/git.nix
|
||||
./modules/my-users.nix
|
||||
./modules/sddm.nix
|
||||
./modules/unfree.nix
|
||||
|
@ -150,7 +151,8 @@
|
|||
htop.enable = true;
|
||||
};
|
||||
|
||||
environment.systemPackages =
|
||||
environment = {
|
||||
systemPackages =
|
||||
with pkgs;
|
||||
[
|
||||
powershell
|
||||
|
@ -168,7 +170,9 @@
|
|||
terminal-parrot
|
||||
rar
|
||||
goldwarden
|
||||
gitflow
|
||||
];
|
||||
};
|
||||
|
||||
# Fonts
|
||||
fonts.packages =
|
||||
|
|
49
lib/modules/git.nix
Normal file
49
lib/modules/git.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{ ... }:
|
||||
let
|
||||
defaultBranch = "main";
|
||||
in {
|
||||
config = {
|
||||
programs.git.config = {
|
||||
init = {
|
||||
inherit defaultBranch;
|
||||
};
|
||||
|
||||
gitflow = {
|
||||
branch = {
|
||||
master = defaultBranch;
|
||||
develop = "dev";
|
||||
};
|
||||
};
|
||||
|
||||
alias = {
|
||||
"ahfange" = "init";
|
||||
"tuedezue" = "add";
|
||||
"beschuldig" = "blame";
|
||||
"zieh" = "pull";
|
||||
"druck" = "push";
|
||||
"machnah" = "clone";
|
||||
"hol" = "fetch";
|
||||
"zwiigab" = "branch";
|
||||
"buechiih" = "commit";
|
||||
"eich" = "rebase";
|
||||
"erd" = "rebase";
|
||||
"gahufwiifelde" = "rebase";
|
||||
"vergliich" = "diff";
|
||||
"tuezemme" = "merge";
|
||||
"versorg" = "stash";
|
||||
"markier" = "tag";
|
||||
"pflueckoepfel" = "cherry-pick";
|
||||
"pflueckhimbeeri" = "cherry-pick";
|
||||
"buechuus" = "checkout";
|
||||
"quaetsch" = "merge --squash";
|
||||
"pfudle" = "push --force";
|
||||
"beschuldigung" = "blame";
|
||||
"zwiigli" = "branch";
|
||||
"tagebuech" = "log";
|
||||
"versteck" = "stash";
|
||||
"zuestand" = "status";
|
||||
"markierig" = "tag";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue