Bluetoothctl scan on results in No default controller available

Hello, I was recently messing with my configs after which my Bluetooth has stoped working, I have attempted to revert back but the issue persists for whatever reason.
When I attempted to scan for the Bluetooth devices with bluetoothctl scan on I get the following error.
No default controller available

Here is some information which I hope will be useful for debugging.

❯ systemctl status bluetooth

● bluetooth.service - Bluetooth service
     Loaded: loaded (/etc/systemd/system/bluetooth.service; enabled; preset: enabled)
    Drop-In: /nix/store/xx8r92yd5q6wnz00lijymnq5752vjv93-system-units/bluetooth.service.d
             └─overrides.conf
     Active: active (running) since Wed 2024-04-17 20:35:59 PDT; 10s ago
       Docs: man:bluetoothd(8)
   Main PID: 2399 (bluetoothd)
     Status: "Running"
         IP: 0B in, 0B out
         IO: 1.5M read, 0B written
      Tasks: 1 (limit: 38401)
     Memory: 2.6M (peak: 2.6M)
        CPU: 36ms
     CGroup: /system.slice/bluetooth.service
             └─2399 /nix/store/468hykzb473ascad7pkcdfi6sg2i73kz-bluez-5.72/libexec/bluetooth/bluetoothd -f /etc/bluetooth/main.conf

Apr 17 20:35:59 nixos systemd[1]: Starting Bluetooth service...
Apr 17 20:35:59 nixos bluetoothd[2399]: Bluetooth daemon 5.72
Apr 17 20:35:59 nixos systemd[1]: Started Bluetooth service.
Apr 17 20:35:59 nixos bluetoothd[2399]: Starting SDP server
Apr 17 20:35:59 nixos bluetoothd[2399]: Bluetooth management interface 1.22 initialized

❯ rfkill list all

0: phy0: Wireless LAN
	Soft blocked: no
	Hard blocked: no       

❯ ls /run/current-system/firmware | grep iwlwifi-cc-a0

iwlwifi-cc-a0-50.ucode.xz
iwlwifi-cc-a0-59.ucode.xz
iwlwifi-cc-a0-66.ucode.xz
iwlwifi-cc-a0-72.ucode.xz
iwlwifi-cc-a0-73.ucode.xz
iwlwifi-cc-a0-74.ucode.xz
iwlwifi-cc-a0-77.ucode.xz

❯ sudo dmesg | grep -i bluetooth

[   21.656773] Bluetooth: Core ver 2.22
[   21.656788] NET: Registered PF_BLUETOOTH protocol family
[   21.656789] Bluetooth: HCI device and connection manager initialized
[   21.656792] Bluetooth: HCI socket layer initialized
[   21.656793] Bluetooth: L2CAP socket layer initialized
[   21.656795] Bluetooth: SCO socket layer initialized
[  613.284052] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[  613.284073] Bluetooth: BNEP socket layer initialized

My config for Bluetooth

hardware.bluetooth = {
		enable = true;
		settings = {
			General = {
				Name = "Bluetooth_WOW";
				FastConnectable = "true";
				Experimental = "true";
			};
			Policy = {
				AutoEnable = "true";
			};
		};
	};

Powering off my system instead of restarting and booting into windows 10 has solved this issue .-.
I dont know how, I dont know why but now it works.

Can you tell us what network controller you have (lspci). Potentially, it doesn’t have great kernel support

My network controller is in my motherboard: ROG STRIX Z370-E GAMING

[nix-shell:~]$ lspci
00:17.0 :  
00:1f.2 :  
00:1c.0 :   (rev f0)
00:1f.0 :  
02:00.0 :  
00:01.0 :   (rev 07)
00:16.0 :  
01:00.0 :   (rev a1)
00:1b.0 :   (rev f0)
07:00.0 :  
00:1f.3 :  
00:00.0 :   (rev 07)
06:00.0 :  
05:00.0 :  
00:1d.0 :   (rev f0)
00:1c.6 :   (rev f0)
01:00.1 :   (rev a1)
00:1f.6 :  
00:1c.4 :   (rev f0)
04:00.0 :  
00:14.0 :  
00:1f.4 :  
00:1c.2 :   (rev f0)