Files
copnix/modules/home/git.nix
T
2026-05-29 18:33:58 +03:00

29 lines
449 B
Nix
Executable File

{
pkgs,
lib,
...
}:
let
base = ''
[user]
name = elwrcl
email = [email protected]
signingkey = AAC15D93AFCAB283
[commit]
gpgsign = true
[tag]
gpgsign = true
'';
darwinExtra = ''
[credential]
helper = osxkeychain
'';
gitconfig = pkgs.writeText "gitconfig" (base + lib.optionalString pkgs.stdenv.isDarwin darwinExtra);
in
{
environment.variables.GIT_CONFIG_SYSTEM = "${gitconfig}";
}