blob: 960d1d0abc6f57a57d3ae581b28e98090261d659 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
{lib, ...}: let
# gets list of files from a directory
getFiles = folder:
lib.attrsets.mapAttrsToList (name: _: "${folder}/${name}") (builtins.readDir folder);
# 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);
in {
inherit getFiles;
inherit certs;
inherit sshKeys;
inherit gpgKeys;
}
|