Files
copnix/modules/home/git.nix
T
2026-06-07 21:55:59 +03:00

25 lines
443 B
Nix
Executable File

{ pkgs, lib, ... }:
let
base = ''
[user]
name = elwrcl
email = [email protected]
signingkey = 5EA48F7312A42B84
[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}";
}