Gpg : Auto-import public keys.

This commit is contained in:
Dmitry Voronin 2024-04-14 08:32:29 +03:00
parent 8281c629a8
commit ee475139e3
Signed by: voronind
SSH key fingerprint: SHA256:3kBb4iV2ahufEBNq+vFbUe4QYfHt98DHQjN7QaptY9k
5 changed files with 14 additions and 5 deletions

View file

@ -22,7 +22,10 @@
allowed = ./secret/public/Signers.key;
};
publicKeys = [
./secret/public/Gpg.key
{
source = ./secret/public/Gpg.key;
trust = 5;
}
];
};
}

View file

@ -1,4 +1,4 @@
{ const, util, style, pkgs, setting, key, ... } @args: {
{ const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [
(import ./Default.nix (args // {
username = "dasha";

View file

@ -1,4 +1,4 @@
{ const, username, homeDir, util, style, pkgs, setting, key, ... } @args: let
{ const, username, homeDir, util, style, pkgs, setting, key, secret, ... } @args: let
foot = import ./module/foot/Init.nix args;
mako = import ./module/mako/Init.nix args;
editorconfig = import ./module/editorconfig/Init.nix args;
@ -39,6 +39,12 @@ in {
XDG_TMP_DIR = "${homeDir}/tmp/";
};
};
# GPG.
programs.gpg = {
enable = true;
publicKeys = secret.crypto.publicKeys;
};
};
}

View file

@ -1,4 +1,4 @@
{ const, util, style, pkgs, setting, key, ... } @args: {
{ const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [
(import ./Default.nix (args // {
username = "root";

View file

@ -1,4 +1,4 @@
{ const, util, style, pkgs, setting, key, ... } @args: {
{ const, util, style, pkgs, setting, key, secret, ... } @args: {
imports = [
(import ./Default.nix (args // {
username = "voronind";