summary refs log tree commit diff stats
path: root/hm/git/default.nix
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2024-04-04 17:06:23 +0200
committerSilas Schöffel <sils@sils.li>2024-04-04 17:06:23 +0200
commit924ec30e7075ea7a9dbac569a537d876f9146850 (patch)
tree11ff56048f05536a1905490137333b3596d0ee18 /hm/git/default.nix
parentusers/default.nix: delete (diff)
downloadnix-config-924ec30e7075ea7a9dbac569a537d876f9146850.tar.gz
nix-config-924ec30e7075ea7a9dbac569a537d876f9146850.zip
refactor: move users/sils dir to hm
Diffstat (limited to 'hm/git/default.nix')
-rw-r--r--hm/git/default.nix47
1 files changed, 47 insertions, 0 deletions
diff --git a/hm/git/default.nix b/hm/git/default.nix
new file mode 100644
index 0000000..20a641b
--- /dev/null
+++ b/hm/git/default.nix
@@ -0,0 +1,47 @@
+{pkgs, ...}: {
+  programs.git = {
+    enable = true;
+    package = pkgs.gitFull;
+    userName = "Silas Schöffel";
+    userEmail = "sils@sils.li";
+    delta = {
+      enable = true;
+      options = {
+        decorations = {
+          commit-decoration-style = "bold purple box ul";
+          file-decoration-style = "none";
+          file-style = "bold red ul";
+        };
+        features = "decorations";
+        whitespace-error-style = "22 reverse";
+      };
+    };
+    signing = {
+      key = "467B7D129EA73AC9";
+      signByDefault = true;
+    };
+    extraConfig = {
+      core = {
+        autocrlf = "input";
+      };
+      safe = {
+        directory = "/etc/nixos";
+      };
+      push = {
+        autoSetupRemote = true;
+      };
+      init = {
+        defaultBranch = "main";
+      };
+      commit = {
+        verbose = true;
+      };
+      sendemail = {
+        smtpserver = "server1.vhack.eu";
+        smtpuser = "sils@sils.li";
+        smtpencryption = "ssl";
+        smtpserverport = "465";
+      };
+    };
+  };
+}