diff --git a/hosts/MaxNixosLaptop/home.nix b/hosts/MaxNixosLaptop/home.nix index c775991..b2952bc 100644 --- a/hosts/MaxNixosLaptop/home.nix +++ b/hosts/MaxNixosLaptop/home.nix @@ -15,6 +15,7 @@ ../../modules/home-manager/btop.nix ../../modules/home-manager/bat.nix ../../modules/home-manager/lazygit.nix + ../../modules/home-manager/git.nix # use mpd for music ../../modules/home-manager/mpd.nix ]; diff --git a/modules/home-manager/git.nix b/modules/home-manager/git.nix new file mode 100644 index 0000000..b0ca686 --- /dev/null +++ b/modules/home-manager/git.nix @@ -0,0 +1,24 @@ +{...}: { + programs.git = { + enable = true; + extraConfig = { + fetch.parallel = 0; + init.defaultBranch = "main"; + pull.rebase = true; + }; + delta = { + enable = true; + options = { + decorations = { + commit-decoration-style = "bold yellow box ul"; + file-decoration-style = "none"; + file-style = "bold yellow ul"; + }; + features = "decorations"; + whitespace-error-style = "22 reverse"; + }; + }; + userEmail = "max.kaenner@gmail.com"; + userName = "Max Känner"; + }; +}