mirror of
https://github.com/szymon-jozef/amazing-dotfiles.git
synced 2026-09-07 20:20:43 +02:00
signing with ssh key
This commit is contained in:
@@ -36,6 +36,8 @@
|
|||||||
# for git
|
# for git
|
||||||
email = "szymon_jozef@proton.me";
|
email = "szymon_jozef@proton.me";
|
||||||
fullName = "Szymon P";
|
fullName = "Szymon P";
|
||||||
|
# your public ssh key
|
||||||
|
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKxyiqawA95AlLjXGd99sQCVR2rDq2/D7PG/vz7sZv5G";
|
||||||
|
|
||||||
pathConfig = {
|
pathConfig = {
|
||||||
wallpaper = "Obrazy/tapety/catppuccin";
|
wallpaper = "Obrazy/tapety/catppuccin";
|
||||||
|
|||||||
@@ -19,11 +19,13 @@
|
|||||||
init.defaultBranch = "master";
|
init.defaultBranch = "master";
|
||||||
push.autoSetupRemote = true;
|
push.autoSetupRemote = true;
|
||||||
core.editor = "nvim";
|
core.editor = "nvim";
|
||||||
|
gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
|
||||||
};
|
};
|
||||||
|
|
||||||
signing = {
|
signing = {
|
||||||
key = userConfig.email;
|
key = userConfig.signingKey;
|
||||||
signByDefault = true;
|
signByDefault = true;
|
||||||
|
format = "ssh";
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = [
|
ignores = [
|
||||||
@@ -37,6 +39,10 @@
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
home.file.".ssh/allowed_signers".text = ''
|
||||||
|
${userConfig.email} ${userConfig.signingKey}
|
||||||
|
'';
|
||||||
|
|
||||||
programs.delta = {
|
programs.delta = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableGitIntegration = true;
|
enableGitIntegration = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user