output: remove unnecesary store copy for hosts directory

This commit is contained in:
Wroclaw 2025-01-12 23:00:44 +01:00
parent bb3c272119
commit 33708ea922

View file

@ -26,7 +26,7 @@ self = {
( # regular .nix files
(type == "regular" && lib.hasSuffix ".nix" name)
|| # directories that contain a default.nix file
(type == "directory" && builtins.pathExists "${./hosts}/${name}/default.nix")
(type == "directory" && builtins.pathExists "${./.}/hosts/${name}/default.nix")
)
# filter out files that start with .
&& !lib.hasPrefix "." name