summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
blob: 8797a528c8d4a865bccf12793823d62ea0a9d762 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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;
      settings = {
        user.name = "adikro";
        user.email = "adikro@disroot.org";
        init.defaultBranch = "main";
      };
    };
  };
}