Remove automatic use of ./. as nixDir

Using ./. as nixDir can cause confusion on repos with unrelated
directories that get picked up inadvertently.
This commit is contained in:
Archit Gupta 2023-06-29 22:05:23 -07:00
parent af3e7f7a6f
commit 412add2d01
2 changed files with 5 additions and 3 deletions

View File

@ -373,8 +373,7 @@ let
root' =
let
appliedRoot = applyNonSysArgs root;
nixDir = appliedRoot.nixDir or
(if pathExists (src + /nix) then src + /nix else src);
nixDir = appliedRoot.nixDir or (src + /nix);
fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases)
// appliedRoot;
in

View File

@ -8,5 +8,8 @@
let
flakelite = import ./. inputs;
in
flakelite ./. { outputs = _: flakelite; };
flakelite ./. {
nixDir = ./.;
outputs = _: flakelite;
};
}