Home-manager flake attribute issue

Hi, im having trouble debugging a problem with home-manager
when I try to build my home manager:
home-manager switch --flake .

error: getting status of '/nix/store/8xd8pq9vqc2vh47bzxg0q2wjrpp3w71z-source/modules/dotfiles': No such file or directory

This has never existed in my git tracked source. I have a modules folder and a dotfiles folder but dotfiles is not in modules.
After doing some research I decided to try a few things including nix store verify and nix store repair.
both result in:

error: flake 'git+file:///home/kyle/.config/home-manager' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'

I can still build nixos, home-manager specifically seems to fail.

Here’s the flake:

{
  description = "NIX";

  inputs = {

    # NIXPKGS
    nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";

    # HOME-MANAGER
    home-manager = {
      url = "github:nix-community/home-manager";
      inputs.nixpkgs.follows = "nixpkgs";
    };

  };

  outputs = { nixpkgs, home-manager, ... }:
    let
      system = "x86_64-linux";
      pkgs = nixpkgs.legacyPackages.${system};

    in {

      # Home-manager Default
      homeConfigurations."kyle" = home-manager.lib.homeManagerConfiguration {
        inherit pkgs;
        modules = [ ./homes/kyle.nix ];
      };

      # Framework laptop
      nixosConfigurations."sorin" = nixpkgs.lib.nixosSystem {
       system = "x86_64-linux";
       modules = [
         ./hosts/sorin/configuration.nix
      ];
    };
  };
}

Looks like some Nix code in modules is referencing ./dotfiles

I resolved my own issue. with rgoulters help. it pointed me in the right direction.
in my home.file.“sourcefilepath”
I was pointing it at ./dotfiles, it should have been …/dotfiles.

Gotta love that.