43 lines
1002 B
Nix
43 lines
1002 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
username,
|
|
userfullname,
|
|
useremail,
|
|
...
|
|
}:
|
|
lib.my.makeHomeProgramConfig {
|
|
inherit config;
|
|
programName = "git";
|
|
optionPath = [
|
|
"cli"
|
|
"vcs"
|
|
"git"
|
|
];
|
|
extraConfig = {
|
|
my.hm = {
|
|
programs.git = {
|
|
userName = "${userfullname}";
|
|
userEmail = "${useremail}";
|
|
signing = {
|
|
format = "ssh";
|
|
signByDefault = true;
|
|
key = "/home/${username}/.ssh/id_ed25519";
|
|
};
|
|
extraConfig = {
|
|
push.autoSetupRemote = true;
|
|
gpg.ssh.allowedSignersFile =
|
|
(pkgs.writeText "allowed_signers" ''
|
|
imxyy1soope1@gmail.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
|
imxyy@imxyy.top ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOEFLUkyeaK8ZPPZdVNEmtx8zvoxi7xqS2Z6oxRBuUPO imxyy@imxyy-nix
|
|
'').outPath;
|
|
};
|
|
};
|
|
programs.lazygit = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|