fix all statix warnings and re-enable statix pre-commit

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-05-21 19:43:57 -04:00
committed by Richie Cahill
parent 0e090cb76a
commit 1b65b78d13
17 changed files with 181 additions and 163 deletions

View File

@ -21,7 +21,7 @@
#
# type:
# mapGetAttr :: String -> AttrSet -> [Any]
mapGetAttr = (attr: set: lib.mapAttrsToList (_: attrset: lib.getAttr attr attrset) set);
mapGetAttr = attr: set: lib.mapAttrsToList (_: attrset: lib.getAttr attr attrset) set;
# gets list of files and directories inside of a directory
#
@ -44,7 +44,7 @@
lsdir =
dir:
lib.optionals (builtins.pathExists dir) (
lib.attrNames (lib.filterAttrs (path: type: type == "directory") (builtins.readDir (dir)))
lib.attrNames (lib.filterAttrs (path: type: type == "directory") (builtins.readDir dir))
);
# return full paths of all files in a directory

View File

@ -97,7 +97,7 @@ rec {
# type:
# genNonX86 :: AttrSet -> [AttrSet]
genNonX86 =
{ ... }:
{ _ }:
[
{
config.nixpkgs = {