55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ lib, ... }:
|
|
{
|
|
programs = {
|
|
git = {
|
|
userName = lib.mkDefault "derfenix";
|
|
userEmail = lib.mkDefault "derfenix@gmail.com";
|
|
|
|
extraConfig = {
|
|
core = {
|
|
hookspath = "/home/fenix/.git_settings/hooks";
|
|
};
|
|
|
|
url = {
|
|
"git@git.derfenix.pro:" = {
|
|
insteadOf = "https://git.derfenix.pro";
|
|
};
|
|
};
|
|
init = {
|
|
defaultBranch = "master";
|
|
};
|
|
protocol = {
|
|
"git" = {
|
|
allow = "always";
|
|
};
|
|
};
|
|
extensions = {
|
|
objectFormat = "sha256";
|
|
};
|
|
};
|
|
|
|
signing = {
|
|
format = "openpgp";
|
|
signByDefault = lib.mkDefault true;
|
|
key = lib.mkDefault "DD89337AFABD013FDD57A0F133445FB510D677DF";
|
|
};
|
|
|
|
includes = [
|
|
{
|
|
condition = "gitdir:~/dev/gofonox-org/";
|
|
contents = {
|
|
user = {
|
|
name = "Gofonox";
|
|
email = "gofonox@yandex.ru";
|
|
signingkey = "468075AB62C2BF67B3435BD18E49915B4743363E";
|
|
};
|
|
commit = {
|
|
gpgsign = true;
|
|
};
|
|
};
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|