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' = root' =
let let
appliedRoot = applyNonSysArgs root; appliedRoot = applyNonSysArgs root;
nixDir = appliedRoot.nixDir or nixDir = appliedRoot.nixDir or (src + /nix);
(if pathExists (src + /nix) then src + /nix else src);
fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases) fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases)
// appliedRoot; // appliedRoot;
in in

View File

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