gpg: fix correctly setting trust for all keys

When passing `gpg.publicKeys` a `source` including _multiple_ keys,
only the first one in `source` will have `trust` set correctly.

This commit fixes the issue and adds a corresponding test
(failing without the patch, fixed with it).
This commit is contained in:
aldur 2025-11-03 00:37:06 +00:00 committed by Austin Horstman
parent a5fee07792
commit 95d65dddae
4 changed files with 108 additions and 1 deletions

View file

@ -1,5 +1,6 @@
{
gpg-immutable-keyfiles = ./immutable-keyfiles.nix;
gpg-mutable-keyfiles = ./mutable-keyfiles.nix;
gpg-multiple-keys-trust = ./multiple-keys-trust.nix;
gpg-override-defaults = ./override-defaults.nix;
}