summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/files.nix8
-rw-r--r--lib/lua.nix2
2 files changed, 5 insertions, 5 deletions
diff --git a/lib/files.nix b/lib/files.nix
index 18439d9..156ec7c 100644
--- a/lib/files.nix
+++ b/lib/files.nix
@@ -1,5 +1,4 @@
{lib, ...}: let
-
# gets list of files from a directory
getFiles = folder:
lib.attrsets.mapAttrsToList (name: type: "${folder}/${name}") (builtins.readDir folder);
@@ -8,13 +7,14 @@
certs = getFiles ../files/certs;
# set of ssh keys
- sshKeys = builtins.filter
+ sshKeys =
+ builtins.filter
(path: lib.strings.hasSuffix "pub" path) (getFiles ../files/keys);
# set of gpg keys
- gpgKeys = builtins.filter
+ gpgKeys =
+ builtins.filter
(path: lib.strings.hasSuffix "asc" path) (getFiles ../files/keys);
-
in {
inherit getFiles;
inherit certs;
diff --git a/lib/lua.nix b/lib/lua.nix
index 6f6389e..9bde6bb 100644
--- a/lib/lua.nix
+++ b/lib/lua.nix
@@ -1,6 +1,6 @@
{lib, ...}: let
toLua = val:
- # nil
+ # nil
if val == null
then "nil"
# boolean