2020-04-17 23:19:05 +02:00
|
|
|
with builtins;
|
|
|
|
let
|
2020-05-01 18:44:05 +02:00
|
|
|
readSecret = name: readFile (./secrets + "/${name}");
|
2020-04-17 23:19:05 +02:00
|
|
|
in
|
|
|
|
mapAttrs
|
|
|
|
(name: type: if type != "directory" then readSecret name else null)
|
|
|
|
(readDir ./secrets)
|