greenhouse

kore

my public infrastructure monorepo

git clone [email protected]:kore.git

kore / home / features / cli / git.nix43 lines · 763B · raw

1{ config, osConfig, ... }:
2
3let
4  identity = osConfig.kore.identities.${config.home.username};
5in {
6  programs.git = {
7    enable = true;
8
9    ignores = [
10      "CLAUDE.md"
11      ".claude/"
12      "**/.claude/settings.local.json"
13    ];
14
15    settings = {
16      user = {
17        name = config.home.username;
18        email = identity.email;
19
20        signing.key = identity.gpg;
21      };
22
23      alias = {
24        l = "log --oneline";
25        lg = "log --oneline --decorate --graph";
26
27        s = "status";
28
29        fuck = "reset --hard";
30        shit = "reset --soft";
31      };
32
33      init.defaultBranch = "main";
34
35      gpg.program = "${config.programs.gpg.package}/bin/gpg2";
36
37      commit = {
38        verbose = true;
39        gpgSign = true;
40      };
41    };
42  };
43}