aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/git.example.nix
blob: 00999cd45396c8fcbf58ab7255f1e40c22381dac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Git example - Template for configuring git identity and signing
{ ... }:
{
  config = {
    development.git = {
      username = "Your Name";
      email = "you@example.com";
      signing = {
        key = "EXAMPLE_GPG_KEY_ID";
        signByDefault = true;
      };
    };

    # SSH keys to load from gopass (entries under ssh/ in the gopass store)
    security.ssh.gopassKeys = [
      "github"
      "gitlab"
    ];
  };
}