Compare commits

...

2 commits

2 changed files with 2 additions and 2 deletions
nix
home
programs/gpg

View file

@ -12,7 +12,6 @@
news.display = "silent";
fonts.fontconfig.enable = true;
nixpkgs.config.allowUnfree = true;
home.packages = with pkgs; [
# nix

View file

@ -4,6 +4,7 @@ let
keysDir = ../../../files/keys;
keys = lib.attrsets.mapAttrsToList (name: type: "${keysDir}/${name}") (builtins.readDir keysDir);
gpgKeys = builtins.filter (path: lib.strings.hasSuffix "asc" path) keys;
in
{
@ -12,7 +13,7 @@ in
# install keys into gpg keyring
programs.gpg = {
enable = true;
publicKeys = map (file: { source = file; trust = 5; }) keys;
publicKeys = map (path: { source = path; trust = 5; }) gpgKeys;
};
# global gpg agent