summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
blob: b2971537e0d01fbc79ee6b95fe46fdf679541a21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, lib, ... }:
let
  cfg = config.hm.conf.git;
in
{
  options.hm.conf.git.enable = lib.mkEnableOption "enables git vcs";
  config = lib.mkIf cfg.enable {
    programs.git = {
      enable = true;
      lfs.enable = true;
      settings = {
        user.name = "adikro";
        user.email = "adikro@disroot.org";
        init.defaultBranch = "main";
      };
    };
  };
}