Cant link my dotfiles using home-manager in a flake(using git submodule)

I just started my dive into NixOS few days ago, currently trying to create minimal flake setup(all my config files lay here).
I have separate repo with dotfiles, embedded in via submodule, so it all looks like this:

├── dotfiles
│   └── . . .
├── flake.lock
├── flake.nix
├── hardware
│   └── hardware-configuration.nix
└── profiles
    └── desktop
        └── home
            ├── configuration.nix
            └── home.nix

The problem is that when i rebuild my system, the following error occurs:

error: path '/nix/store/<hash>-source/dotfiles/.bashrc' does not exist

and the source directory looks like this:

├── flake.lock
├── flake.nix
├── hardware
│   └── hardware-configuration.nix
└── profiles
    └── desktop
        └── home
            ├── configuration.nix
            └── home.nix

how can i include the dotfiles directory into the source? can problem be related to using git submodule?
im really new to NixOS, any help/advice will be heavily appreciated

thank you! related answer from your linked post worked for me: