summaryrefslogtreecommitdiff
path: root/home-manager/modules/git.nix
diff options
context:
space:
mode:
authoralex <[email protected]>2026-10-17 18:28:44 +0200
committeralex <[email protected]>2026-10-17 18:28:44 +0200
commit8c72ed35ec5c8efda1dd3a2c2037a6b9126f0d71 (patch)
tree542eb1d5a76d7738983ab3f7493c19a2f53135a6 /home-manager/modules/git.nix
parent87c2ef9120cf1a106b898718527b539571ad2934 (diff)
downloadnixos-8c72ed35ec5c8efda1dd3a2c2037a6b9126f0d71.tar.xz
nixos-8c72ed35ec5c8efda1dd3a2c2037a6b9126f0d71.zip
added default git config to home manager
Diffstat (limited to 'home-manager/modules/git.nix')
-rw-r--r--home-manager/modules/git.nix13
1 files changed, 11 insertions, 2 deletions
diff --git a/home-manager/modules/git.nix b/home-manager/modules/git.nix
index 2abe4e8..59551f9 100644
--- a/home-manager/modules/git.nix
+++ b/home-manager/modules/git.nix
@@ -1,3 +1,12 @@
-{...}: {
- programs.git.enable = true;
+{ ... }: {
+ programs.git = {
+ enable = true;
+ settings = {
+ user = {
+ name = "alex";
+ email = "[email protected]";
+ };
+ init.defaultBranch = "main";
+ };
+ };
}