From 37e7fced05b0bf33e50e52b251abba23cb205bde Mon Sep 17 00:00:00 2001 From: Tao Tien <29749622+taotien@users.noreply.github.com> Date: Fri, 29 Mar 2024 11:47:47 -0500 Subject: [PATCH] power and qmk --- systems/NOlaptop.nix | 2 +- users/tao.nix | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/systems/NOlaptop.nix b/systems/NOlaptop.nix index 8f7cab2..f3eab76 100644 --- a/systems/NOlaptop.nix +++ b/systems/NOlaptop.nix @@ -26,7 +26,7 @@ in { Type = "oneshot"; RemainAfterExit = "yes"; ExecStart = "${pkgs.powertop}/bin/powertop --auto-tune"; - ExecStartPost = "/bin/sh -c 'for f in $(grep -l \"Keyboard\" /sys/bus/usb/devices/*/product | sed \"s/product/power\\\\/control/\"); do echo on >| '$f'; done'"; + ExecStartPost = "/bin/sh -c 'for f in $(grep -l \"Keyboard\\|Preonic\\|Razer\\|Macropad\" /sys/bus/usb/devices/*/product | sed \"s/product/power\\\\/control/\"); do echo on >| '$f'; done'"; }; }; diff --git a/users/tao.nix b/users/tao.nix index ee6ee31..00a2827 100644 --- a/users/tao.nix +++ b/users/tao.nix @@ -120,10 +120,9 @@ services.snapper.snapshotInterval = "*:0/5"; hardware.keyboard.qmk.enable = true; - # services.udev.extraRules = '' - # KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" - # KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{serial}=="*vial:f64c2b3c*", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" - # ''; + services.udev.extraRules = '' + KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl" + ''; # obs virtual camera boot.extraModulePackages = with config.boot.kernelPackages; [