git: Sign commits with ssh key
This commit is contained in:
parent
0c1c93f79a
commit
85e6d9a73b
1 changed files with 6 additions and 0 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
let
|
let
|
||||||
username = config.chvp.username;
|
username = config.chvp.username;
|
||||||
|
homeDir = config.home-manager.users.${username}.home.homeDirectory;
|
||||||
|
sshKeyFile = config.home-manager.users.${username}.programs.ssh.extraOptionOverrides.IdentityFile or "${homeDir}/.ssh/id_ed25519";
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
options.chvp.development.git = {
|
options.chvp.development.git = {
|
||||||
|
@ -68,11 +70,15 @@ in
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
branch.autosetuprebase = "always";
|
branch.autosetuprebase = "always";
|
||||||
|
commit.gpgSign = true;
|
||||||
github.user = "chvp";
|
github.user = "chvp";
|
||||||
|
gpg.format = "ssh";
|
||||||
merge.conflictStyle = "diff3";
|
merge.conflictStyle = "diff3";
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
rebase.autoStash = true;
|
rebase.autoStash = true;
|
||||||
rerere.enabled = true;
|
rerere.enabled = true;
|
||||||
|
tag.gpgSign = true;
|
||||||
|
user.signingKey = sshKeyFile;
|
||||||
};
|
};
|
||||||
ignores = [
|
ignores = [
|
||||||
".DS_Store"
|
".DS_Store"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue