forked from extern/flakelight
Use src as default nixDir if ./nix does not exist
This commit is contained in:
parent
f4f7a8cd37
commit
d871fd7cbf
@ -368,7 +368,8 @@ let
|
|||||||
root' =
|
root' =
|
||||||
let
|
let
|
||||||
appliedRoot = applyNonSysArgs root;
|
appliedRoot = applyNonSysArgs root;
|
||||||
nixDir = appliedRoot.nixDir or (src + /nix);
|
nixDir = appliedRoot.nixDir or
|
||||||
|
(if pathExists (src + /nix) then src + /nix else src);
|
||||||
fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases)
|
fullRoot = (autoImportAttrs nixDir rootAttrs attrAliases)
|
||||||
// appliedRoot;
|
// appliedRoot;
|
||||||
in
|
in
|
||||||
|
Loading…
Reference in New Issue
Block a user