Files
copnix/modules/nixos/common/common-git.ulu.nix
T
2026-07-30 22:58:52 +03:00

28 lines
569 B
Nix

{ ... }:
{
commonModules.common-git =
{ 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}";
};
}