outputs.nix: fix path handling

This commit is contained in:
Wroclaw 2025-04-07 22:14:57 +02:00
parent 5bddee4588
commit 837b3d1b96

View file

@ -60,7 +60,7 @@ self = {
( lib.filterAttrs (name: type:
(
(type == "regular" && lib.hasSuffix ".nix" name)
|| (type == "directory" && builtins.pathExists "${./.}/hosts/${name}/default.nix")
|| (type == "directory" && builtins.pathExists "${builtins.toString ./.}/hosts/${name}/default.nix")
)
&& !lib.hasPrefix "." name
))