mirror of
https://github.com/alyraffauf/nixcfg.git
synced 2024-11-22 02:13:55 -05:00
secrets: simplified public key loading
This commit is contained in:
parent
df8657bfa8
commit
7c16ad2f7c
|
@ -1,16 +1,14 @@
|
|||
let
|
||||
keys = [
|
||||
(builtins.readFile ./publicKeys/aly_fallarbor.pub)
|
||||
(builtins.readFile ./publicKeys/aly_lavaridge.pub)
|
||||
(builtins.readFile ./publicKeys/aly_mauville.pub)
|
||||
(builtins.readFile ./publicKeys/aly_petalburg.pub)
|
||||
(builtins.readFile ./publicKeys/aly_rustboro.pub)
|
||||
(builtins.readFile ./publicKeys/root_fallarbor.pub)
|
||||
(builtins.readFile ./publicKeys/root_lavaridge.pub)
|
||||
(builtins.readFile ./publicKeys/root_mauville.pub)
|
||||
(builtins.readFile ./publicKeys/root_petalburg.pub)
|
||||
(builtins.readFile ./publicKeys/root_rustboro.pub)
|
||||
hosts = [
|
||||
"fallarbor"
|
||||
"lavaridge"
|
||||
"mauville"
|
||||
"petalburg"
|
||||
"rustboro"
|
||||
];
|
||||
systemKeys = builtins.map (host: builtins.readFile ./publicKeys/root_${host}.pub) hosts;
|
||||
userKeys = builtins.map (host: builtins.readFile ./publicKeys/aly_${host}.pub) hosts;
|
||||
keys = systemKeys ++ userKeys;
|
||||
in {
|
||||
"lastFM/apiKey.age".publicKeys = keys;
|
||||
"lastFM/secret.age".publicKeys = keys;
|
||||
|
|
Loading…
Reference in a new issue