Decree (taqdīr) cannot be reduced solely to Allah's prior knowledge. It relates to both divine knowledge and divine command/decree.
The actions Allah knows, His decree concerning them, and their determination are connected. The servant acts by choice, but that action does not fall outside Allah's decree.