Changing import outPath during nix build (Flakes)

If I have a flake.nix file at a root directory using import on a default.nix file in a subdirectory, how do I get the output from the derivation to show up in the subdirectory? It is showing up in the root directory. I don’t want all the derivations from each subdirectory to show up in the same place.