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

{
  options.git.enable = lib.mkEnableOption "Enable and configure Git";
  config = lib.mkIf config.git.enable {
    programs.git = {
      enable = true;
      userName = "schererleander";
      userEmail = "leander@schererleander.de";
      extraConfig = {
        user.signingkey = "506793F115464BB4";
        commit.gpgsign  = "true";
        pull.rebase = true;
        alias.co = "checkout";
        alias.br = "branch";
        alias.st = "status";
      };
    };
  };
}