diff --git a/options/default.nix b/options/default.nix index 0622419..19610eb 100644 --- a/options/default.nix +++ b/options/default.nix @@ -1,5 +1,12 @@ {lib, ...}: with lib; { # Import all *.nix options from custom directory, excluding .*.nix - imports = filter (f: hasSuffix ".nix" f && !hasPrefix "." (builtins.baseNameOf f)) (filesystem.listFilesRecursive ./custom); + imports = + filter ( + file: let + f = builtins.baseNameOf file; + in + !hasPrefix "." f && hasSuffix ".nix" f + ) + (filesystem.listFilesRecursive ./custom); }