Suspend and Hibernate worked right after installation, and I got bluetooth headset working by just couple lines of configuration.nix, impressive.
I added my bluetooth headset as trusted bluetooth device, so it can automatically connect to my NixOS box. Now my problem is, if I left my bluetooth headset on and connected when I suspend my NixOS box, it will wake up right away by the bluetooth headset, which is really annoying.
The bluetooth support is from a USB bluetooth dongle:
$ lsusb Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub Bus 001 Device 005: ID 1532:0029 Razer USA, Ltd Bus 001 Device 003: ID 045e:07a5 Microsoft Corp. Wireless Receiver 1461C Bus 001 Device 002: ID 0a5c:21e8 Broadcom Corp. BCM20702A0 Bluetooth 4.0 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
I wonder if I can disable waking up by bluetooth, while still able to wake it up through my wireless keyboard connected through the “Microsoft Corp. Wireless Receiver 1461C” dongle.