From 1bf9bc0f981d7bc81559e0096de77c72766e41eb Mon Sep 17 00:00:00 2001 From: sefidel Date: Sat, 5 Aug 2023 23:42:58 +0900 Subject: fix(nixos/alpha): fix premature wakeup caused by logitech receiver --- nixos/alpha/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'nixos') diff --git a/nixos/alpha/configuration.nix b/nixos/alpha/configuration.nix index 5b0eaf4..9df7566 100644 --- a/nixos/alpha/configuration.nix +++ b/nixos/alpha/configuration.nix @@ -152,6 +152,11 @@ hardware.bluetooth.enable = true; hardware.logitech.wireless.enable = true; + services.udev.extraRules = '' + # Logitech receiver for superlight, causes premature wakeup from suspend + ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}=="046d", ATTRS{idProduct}=="c547", ATTR{power/wakeup}="disabled" + ''; + services.printing.enable = true; services.printing.drivers = [ pkgs.gutenprint pkgs.samsung-unified-linux-driver pkgs.brgenml1lpr pkgs.brgenml1cupswrapper ]; -- cgit 1.4.1