blob: 156ec7c658d43ec13b8ca2c7752e16d5d20810a7 (
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: type: "${folder}/${name}") (builtins.readDir folder);
# gets custom set of root certs
certs = getFiles ../files/certs;
# set of ssh keys
sshKeys =
builtins.filter
(path: lib.strings.hasSuffix "pub" path) (getFiles ../files/keys);
# set of gpg keys
gpgKeys =
builtins.filter
(path: lib.strings.hasSuffix "asc" path) (getFiles ../files/keys);
in {
inherit getFiles;
inherit certs;
inherit sshKeys;
inherit gpgKeys;
}
|