{ pkgs, unstable, config, ... }: { hardware.openrazer.enable = true; environment.systemPackages = [ #with unstable; [ pkgs.openrazer-daemon unstable.polychromatic ]; # Don't wake from sleep via keyboard systemd.services.nowake-razer = { script = '' echo XHC0 > /proc/acpi/wakeup ''; wantedBy = ["multi-user.target"]; serviceConfig = { Type = "oneshot"; }; }; }