aboutsummaryrefslogtreecommitdiffstats
path: root/modules/private/git.example.nix
blob: da4d77ef2110108b8843202e65abe79e6be1b2f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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" ];
  };
}