Skip to content

Commit 2ea6473

Browse files
committed
feat(common): support local git config overrides via includes
Add git include for ~/.gitconfig-local to allow per-machine overrides (e.g. corporate user.name/email) without committing sensitive details.
1 parent 0655d85 commit 2ea6473

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

common/git/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Unified cross-platform Git configuration
2-
{ pkgs, lib, ... }:
2+
{ config, pkgs, lib, ... }:
33

44
let
55
inherit (pkgs.stdenv) isLinux isDarwin;
@@ -59,6 +59,8 @@ in {
5959
"/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
6060
};
6161

62+
includes = [{ path = "${config.home.homeDirectory}/.gitconfig-local"; }];
63+
6264
signing = {
6365
key = signingKey;
6466
format = "ssh";

0 commit comments

Comments
 (0)