You’ve effectively already started; bisecting is just the process of building various commits (in a binary search-like pattern) until you find the one that causes it, using some specific git tooling to help do this.
You can use nix-bisect for that. There’s an announcement for it here with some additional info: Nix-bisect -- Bisect Nix Builds