greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / home / features / cli / git.nix33 lines · 538B · raw

1{ config, ... }:
2
3{
4  programs.git = {
5    enable = true;
6
7    userName = "lostduk";
8    userEmail = "[email protected]";
9
10    aliases = {
11      l = "log --oneline";
12      lg = "log --oneline --decorate --graph";
13
14      s = "status";
15
16      fuck = "reset --hard";
17      shit = "reset --soft";
18    };
19
20    extraConfig = {
21      init.defaultBranch = "main";
22
23      #user.signing.key = "";
24
25      gpg.program = "${config.programs.gpg.package}/bin/gpg2";
26
27      commit = {
28        verbose = true;
29        #gpgSign = true;
30      };
31    };
32  };
33}