summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
blob: 09bd9e19bfbffd3558ef7facbf95a4f43419057a (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 = "/run/secrets/git/email";
        init.defaultBranch = "main";
      };
    };
  };
}