mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
25 lines
443 B
Nix
Executable File
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}";
|
|
}
|