1
1
Fork 0

nix: fix preemptively adding files to store

This commit is contained in:
Myned 2025-03-17 22:39:53 -05:00
parent 5e4b12aa8e
commit 08c278d2c9
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -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);
}