summaryrefslogtreecommitdiff
path: root/hm/conf/git.nix
blob: f6a7267bbb53effce67533e01acdebb205421976 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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";
      };
    };
  };
}