about summary refs log tree commit diff stats
path: root/home-manager/config
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-13 12:05:16 +0200
committerSoispha <soispha@vhack.eu>2023-05-13 12:05:16 +0200
commitedd708580e58d1bd93f6c0bfc4f99bf76267e8f1 (patch)
tree1bad2b76db2cda534cad993eb82e7b9c92628100 /home-manager/config
parentFeat(hm/conf/git): Reword git commit template (diff)
downloadnixos-config-edd708580e58d1bd93f6c0bfc4f99bf76267e8f1.tar.gz
nixos-config-edd708580e58d1bd93f6c0bfc4f99bf76267e8f1.zip
Refactor(hm/conf/git): Remove useless variable assignment
Diffstat (limited to 'home-manager/config')
-rw-r--r--home-manager/config/git/default.nix37
1 files changed, 18 insertions, 19 deletions
diff --git a/home-manager/config/git/default.nix b/home-manager/config/git/default.nix
index c01738e0..5f5ce100 100644
--- a/home-manager/config/git/default.nix
+++ b/home-manager/config/git/default.nix
@@ -1,22 +1,4 @@
 {...}: let
-  gitConfig = {
-    core = {
-      excludesFile = "${gitIgnoreFile}";
-    };
-    init = {
-      defaultBranch = "prime";
-    };
-    user = {
-      email = "soispha@vhack.eu";
-      name = "Soispha";
-    };
-    help = {
-      autocorrect = 5;
-    };
-    commit = {
-      template = "${gitTemplateFile}";
-    };
-  };
   gitIgnoreFile = ./git_ignore.git;
   gitTemplateFile = ./git_template.git;
 in {
@@ -49,7 +31,24 @@ in {
                       ''          %C(white)%s%C(reset)%n''   \
                       %C(dim white)- %an <%ae> %C(reset) %C(dim white)(committer: %cn <%ce>)%C(reset)'";
     };
-    extraConfig = gitConfig;
+    extraConfig = {
+      core = {
+        excludesFile = "${gitIgnoreFile}";
+      };
+      init = {
+        defaultBranch = "prime";
+      };
+      user = {
+        email = "soispha@vhack.eu";
+        name = "Soispha";
+      };
+      help = {
+        autocorrect = 5;
+      };
+      commit = {
+        template = "${gitTemplateFile}";
+      };
+    };
     delta = {
       enable = true;
       options = {