diff --git a/src/libexpr/flake/call-flake.nix b/src/libexpr/flake/call-flake.nix index db4b6f830986..0edc43146b8c 100644 --- a/src/libexpr/flake/call-flake.nix +++ b/src/libexpr/flake/call-flake.nix @@ -70,11 +70,7 @@ let outPath = sourceInfo + ((if subdir == "" then "" else "/") + subdir); - file = if builtins.pathExists (outPath + "/.devenv.flake.nix") - then "/.devenv.flake.nix" - else "/flake.nix"; - - flake = import (outPath + file); + flake = import (outPath + "/flake.nix"); inputs = builtins.mapAttrs (inputName: inputSpec: allNodes.${resolveInput inputSpec})