mirror of
https://github.com/elwrcl/copnix.git
synced 2026-10-31 14:28:02 +03:00
23 lines
492 B
Nix
23 lines
492 B
Nix
{ ... }:
|
|
{
|
|
flake.nixosModules.common-git =
|
|
{ pkgs, ... }:
|
|
let
|
|
gitconfig = pkgs.writeText "gitconfig" ''
|
|
[user]
|
|
name = elwrcl
|
|
email = [email protected]
|
|
signingkey = 5EA48F7312A42B84
|
|
[commit]
|
|
gpgsign = true
|
|
[tag]
|
|
gpgsign = true
|
|
[credential]
|
|
helper = ${pkgs.gitFull}/bin/git-credential-libsecret
|
|
'';
|
|
in
|
|
{
|
|
environment.variables.GIT_CONFIG_SYSTEM = "${gitconfig}";
|
|
};
|
|
}
|