diff options
Diffstat (limited to 'lib/files.nix')
| -rw-r--r-- | lib/files.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/files.nix b/lib/files.nix index 156ec7c..960d1d0 100644 --- a/lib/files.nix +++ b/lib/files.nix @@ -1,7 +1,7 @@ {lib, ...}: let # gets list of files from a directory getFiles = folder: - lib.attrsets.mapAttrsToList (name: type: "${folder}/${name}") (builtins.readDir folder); + lib.attrsets.mapAttrsToList (name: _: "${folder}/${name}") (builtins.readDir folder); # gets custom set of root certs certs = getFiles ../files/certs; @@ -9,12 +9,12 @@ # set of ssh keys sshKeys = builtins.filter - (path: lib.strings.hasSuffix "pub" path) (getFiles ../files/keys); + (filePath: lib.strings.hasSuffix "pub" filePath) (getFiles ../files/keys); # set of gpg keys gpgKeys = builtins.filter - (path: lib.strings.hasSuffix "asc" path) (getFiles ../files/keys); + (filePath: lib.strings.hasSuffix "asc" filePath) (getFiles ../files/keys); in { inherit getFiles; inherit certs; |