mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
home/gpg: add key
This commit is contained in:
parent
4a1e2600e3
commit
6581bffacd
1 changed files with 16 additions and 6 deletions
|
|
@ -5,19 +5,23 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.gpg.publicKeys = let
|
programs.gpg.publicKeys = let
|
||||||
github = {
|
fromUrl = {
|
||||||
user,
|
url,
|
||||||
hash,
|
hash,
|
||||||
trust ? 5,
|
trust ? 5,
|
||||||
}: {
|
}: {
|
||||||
source = pkgs.fetchurl {
|
source = pkgs.fetchurl {inherit url hash;};
|
||||||
url = "https://github.com/${user}.gpg";
|
|
||||||
inherit hash;
|
|
||||||
};
|
|
||||||
inherit trust;
|
inherit trust;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
github = {user, ...} @ args:
|
||||||
|
fromUrl (
|
||||||
|
builtins.removeAttrs args ["user"]
|
||||||
|
// {url = "https://github.com/${user}.gpg";}
|
||||||
|
);
|
||||||
in
|
in
|
||||||
map github [
|
map github [
|
||||||
|
# Do not depend on my own forgejo instance / self-host server to avoid a single point of failure
|
||||||
{
|
{
|
||||||
user = "leana8959";
|
user = "leana8959";
|
||||||
hash = "sha256-Y+v/8bLkyUIe4vjToChQP3ChPxRV/DqI72OTsx6F0oo=";
|
hash = "sha256-Y+v/8bLkyUIe4vjToChQP3ChPxRV/DqI72OTsx6F0oo=";
|
||||||
|
|
@ -34,5 +38,11 @@
|
||||||
user = "confusedkernel";
|
user = "confusedkernel";
|
||||||
hash = "sha256-9DdtDAcv+2Z0jJMSLAXbp5ne8uHYj5V/lNGi0kKSdv4=";
|
hash = "sha256-9DdtDAcv+2Z0jJMSLAXbp5ne8uHYj5V/lNGi0kKSdv4=";
|
||||||
}
|
}
|
||||||
|
]
|
||||||
|
++ map fromUrl [
|
||||||
|
{
|
||||||
|
url = "https://eragon.re/pubkey.asc";
|
||||||
|
hash = "sha256-xvNB+BxqxHqdVBnMhzX3eenN3KmjmdATFPHkPUGweAA=";
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue