refactor: extract gpg config

main
mandlm 2024-07-10 12:58:04 +02:00
parent 35550c6085
commit 8f1ca25dba
Signed by: mandlm
GPG Key ID: 088ED38F036C7AF2
10 changed files with 10 additions and 130 deletions

View File

@ -28,7 +28,8 @@
user = "mandlm";
userName = "Michael Mandl";
userEmail = "mandlm@molez.net";
userSigningKey = "4AA25D647AA54CC7";
gpgSigningKey = "4AA25D647AA54CC7";
gpgSSHKeys = [ "1F937AC8F77ED74CE24EAAE79B5601F73C6D115F" ];
theme = "dark";
};
};
@ -43,7 +44,8 @@
user = "mmandl";
userName = "Michael Mandl";
userEmail = "michael.mandl@horsch.com";
userSigningKey = "088ED38F036C7AF2";
gpgSigningKey = "088ED38F036C7AF2";
gpgSSHKeys = [ "AEB2BF3FF9CF9529E9A3C6F1A202D21686FF9278" ];
theme = "dark";
};
};

View File

@ -1,4 +1,4 @@
{ pkgs, userName, userEmail, userSigningKey, ... }:
{ pkgs, userName, userEmail, gpgSigningKey, ... }:
{
programs = {
@ -11,7 +11,7 @@
inherit userEmail;
signing = {
key = userSigningKey;
key = gpgSigningKey;
signByDefault = true;
};

View File

@ -1,4 +1,4 @@
{ pkgs, ... }:
{ pkgs, gpgSSHKeys, ... }:
{
services.gpg-agent = {
@ -6,9 +6,7 @@
enableZshIntegration = true;
pinentryPackage = pkgs.pinentry-curses;
enableSshSupport = true;
sshKeys = [
"AEB2BF3FF9CF9529E9A3C6F1A202D21686FF9278"
];
sshKeys = gpgSSHKeys;
defaultCacheTtl = 3600 * 12;
defaultCacheTtlSsh = 3600 * 12;
maxCacheTtl = 3600 * 12;

View File

@ -24,6 +24,7 @@
../eza.nix
../fzf.nix
../git.nix
../gpg
../neovim
../picocom.nix
../podman.nix
@ -33,7 +34,6 @@
../starship.nix
../tree.nix
../zoxide.nix
./gpg
./ssh.nix
./zsh.nix
];

View File

@ -1,21 +0,0 @@
{ pkgs, ... }:
{
services.gpg-agent = {
enable = true;
enableZshIntegration = true;
pinentryPackage = pkgs.pinentry-gnome3;
enableSshSupport = true;
sshKeys = [ "1F937AC8F77ED74CE24EAAE79B5601F73C6D115F" ];
};
programs.gpg = {
enable = true;
mutableKeys = true;
mutableTrust = true;
publicKeys = [{
source = ./pubring.asc;
trust = "ultimate";
}];
};
}

View File

@ -1,99 +0,0 @@
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBF75iDUBEADKT7HJf29rKofixOegZt6C4fDWhgJuVa/tT/9CxBewpGuvt2an
JM9eTO2ZUWjcbYc4zNsMppANKyr0+i9tve7f+hA5sXDbUNXXjxJz0tu2L3qToTqK
fkvpy4D5dFQYB/N+9n1JKouXNcZKmoTzH9ur6gxmDTdrKcOzjsJQvFjg/nf3jLzT
kj1REcCFxCqXQBVbnWObnaM/+2coofA11XO8KcA/qyVf2014Vj+LCtg8cYUWwOGn
1nomHkJpqAD1k1wYfiEq+2wwgYP9Qvb1WhHzfpRmLT6C1RR9gqnWdNhkRPNrEXOV
2lIAdKg0JJ2jZaOvblGfSA5ObndgwjCMu+0eE5bwSTYAXKwFoZC8/q78t1q2Wrgt
s9+zUWFQiTltXtGhtwiaZLEmkj8Dlg3C3EltaJAOX06AkVQiGY/DUfFL5uVXDSyE
2MBBFKk92ekGdFN6Vh1psw4lxQBUg/aGXA7zf+DR8UBQkGklDJPw0QbD15OEOsG0
e1JbAa/rHt2w9a/Cn3Mzk18S0nwJXNmGk55Nm2TC5jNnP/COI6Pn2EE9t6RljBQT
jsOtolHy74ss3xz1c6Q4yLmDQUspxrL3T7DzpfhVQKIYiD9mKfV7mgROJfVRCobU
ZYekE4zvVNB8/unyxy4ZClD++qSODGT88p4FcedZvLJpjzX/QQBjScKycQARAQAB
tCBNaWNoYWVsIE1hbmRsIDxtYW5kbG1AbW9sZXoubmV0PokCVAQTAQgAPhYhBNvk
01IKur/fhA+Pz0qiXWR6pUzHBQJe+Yg1AhsjBQkJZgGABQsJCAcCBhUKCQgLAgQW
AgMBAh4BAheAAAoJEEqiXWR6pUzHowUP/ikckO6HTG1jdq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 +71,6 @@
../sway
../tree.nix
../zoxide.nix
./gpg
./zsh.nix
];
}