From dbd6c311602dcfd9412a3b2c8ffe697c8fcb014c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Max=20K=C3=A4nner?= Date: Sat, 9 Mar 2024 11:30:13 +0100 Subject: [PATCH] 122 current 1970-01-01 01:00:00 24.05.20240303.b8697e5 6.6.19 * --- hosts/MaxNixosLaptop/home.nix | 1 + modules/home-manager/git.nix | 24 ++++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 modules/home-manager/git.nix 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"; + }; +}