Unable to use prisma on nixos

there are a few issues pertaining as to how to setup prisma on nixos, but i have been unable to get prisma to work from every single one,

main prisma issue suggests a nix-direnv and flake.nix method, but when i run direnv allow, nothing happens, i have nix-direnv working through home-manager as per its documentation.

another comment on the same thread suggests a shell.nix approach, but using that i get the error

nix shell
error: flake 'path:/home/lux/Documents/git/nsa-khatabook/backend' does not provide attribute 'packages.x86_64-linux.default' or 'defaultPackage.x86_64-linux'

running prisma has been the single biggest pain in the butt for me when using nixos, being relatively new to nixos, i find it hard to navigate about using it as my daily driver. its been months and everythings been working well BUT prisma.