summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hm/conf/git.nix')
-rw-r--r--hm/conf/git.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/hm/conf/git.nix b/hm/conf/git.nix
new file mode 100644
index 0000000..f6a7267
--- /dev/null
+++ b/hm/conf/git.nix
@@ -0,0 +1,18 @@
+{ config, lib, ... }:
+let
+ cfg = config.szpont.hm.conf.git;
+in
+{
+ options.szpont.hm.conf.git.enable = lib.mkEnableOption "enables git vcs";
+
+ config = lib.mkIf cfg.enable {
+ programs.git = {
+ enable = true;
+ settings = {
+ user.name = "adikro";
+ user.email = "adikro@disroot.org";
+ init.defaultBranch = "main";
+ };
+ };
+ };
+}