Cannot connect to Wifi

So have this issue where nixos sometimes cannot connect to the internet. usually happens after i use windows for uni work. then when i go back to nix my network device wont show up. i tried a few fixes like adding these settings to my config

boot.kernelModules = [ “i8042” “iwlwifi”];

and

hardware.enableAllFirmware = true;
networking.networkmanager.wifi.backend = “wpa_supplicant”;

 → ip link show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
link/ether b0:25:aa:4f:1a:a4 brd ff:ff:ff:ff:ff:ff
altname enp3s0
3: virbr0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc noqueue state DOWN mode DEFAULT group default qlen 1000
link/ether 52:54:00:6c:ec:75 brd ff:ff:ff:ff:ff:ff
 → lspci | grep -i net
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 05)
04:00.0 Network controller: Intel Corporation Wi-Fi 6 AX200 (rev 1a)

Fixed used the following command with CMD on windows

powercfg /h off

No idea what is going on but it appears that its something to do with windows fast boot using the device first?