aboutsummaryrefslogtreecommitdiffstats
path: root/home/git/default.nix
blob: 6d975e3ef7c50894e947b787ab3ebbc617ff80e6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ pkgs, ... }:
{
  programs.git = {
    enable = true;
    aliases = {
      lg = "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit";
    };
    diff-so-fancy.enable = true;
    maintenance.enable = true;
    userEmail = "petri.hienonen@gmail.com";
    userName = "Petri Hienonen";
    extraConfig = {
      core = {
        editor = "${pkgs.neovim}/bin/nvim";
        hooksPath = ".githooks/";
        quotepath = false;
      };
      commit.gpgSign = true;
      credential.helper = "store";
      init.defaultBranch = "master";
      merge.conflictStyle = "diff3";
      pull.rebase = true;
      tag.gpgSign = true;
      user.signingkey = "76028181DD730D0C";
    };
  };
}