nix: fix preemptively adding files to store
This commit is contained in:
parent
5e4b12aa8e
commit
08c278d2c9
1 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue