aboutsummaryrefslogtreecommitdiff
path: root/modules/git.nix
blob: 2e44a34d835893c7a559eae170ad1b4c22eab352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ config, lib, pkgs, ... }:

let
  cfg = config.git;
in {
  options.git.enable = lib.mkEnableOption "Enable and configure Git";

  config = lib.mkIf cfg.enable {
    programs.git = {
      enable = true;
      userName = "schererleander";
      userEmail = "leander@schererleander.de";

      extraConfig = ''
        [alias]
          co = checkout
          br = branch
          st = status
      '';
    };
  };
}