power and qmk
This commit is contained in:
parent
8ee4c2b758
commit
37e7fced05
2 changed files with 4 additions and 5 deletions
|
|
@ -26,7 +26,7 @@ in {
|
||||||
Type = "oneshot";
|
Type = "oneshot";
|
||||||
RemainAfterExit = "yes";
|
RemainAfterExit = "yes";
|
||||||
ExecStart = "${pkgs.powertop}/bin/powertop --auto-tune";
|
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'";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -120,10 +120,9 @@
|
||||||
services.snapper.snapshotInterval = "*:0/5";
|
services.snapper.snapshotInterval = "*:0/5";
|
||||||
|
|
||||||
hardware.keyboard.qmk.enable = true;
|
hardware.keyboard.qmk.enable = true;
|
||||||
# services.udev.extraRules = ''
|
services.udev.extraRules = ''
|
||||||
# KERNEL=="hidraw*", SUBSYSTEM=="hidraw", MODE="0660", GROUP="users", TAG+="uaccess", TAG+="udev-acl"
|
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"
|
'';
|
||||||
# '';
|
|
||||||
|
|
||||||
# obs virtual camera
|
# obs virtual camera
|
||||||
boot.extraModulePackages = with config.boot.kernelPackages; [
|
boot.extraModulePackages = with config.boot.kernelPackages; [
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue