blob: c75508c7b56bb5d87338c5d486008b8c88270d22 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
{lib}: let
# gets list of files from a directory
getFiles = folder:
lib.attrsets.mapAttrsToList (name: _: "${folder}/${name}") (builtins.readDir folder);
in {
# gets custom set of root certs
certs = getFiles ../files/certs;
# set of ssh keys
sshKeys =
builtins.filter
(filePath: lib.strings.hasSuffix "pub" filePath) (getFiles ../files/keys);
# set of gpg keys
gpgKeys =
builtins.filter
(filePath: lib.strings.hasSuffix "asc" filePath) (getFiles ../files/keys);
}
|