From b69d6dd7f87db131fa62a16f9debb49ae7e87f79 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 24 Jun 2025 12:44:25 -0400 Subject: fmt --- lib/files.nix | 8 ++++---- lib/lua.nix | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-freya