From 6fd6982d0ff6c57a582088e6c477eb18ac8dbf0c Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Thu, 24 Apr 2025 11:27:54 +0200 Subject: [PATCH] fix omen perms Former-commit-id: b7bfd6eed8c7571fc3eadf2c219cec11cec4b1de --- nixos/omen.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/omen.nix b/nixos/omen.nix index 68ed813..246b188 100644 --- a/nixos/omen.nix +++ b/nixos/omen.nix @@ -37,11 +37,11 @@ in { "w /sys/devices/platform/hp-wmi/rgb_zones/zone01 0660 root omen-rgb -" "w /sys/devices/platform/hp-wmi/rgb_zones/zone02 0660 root omen-rgb -" "w /sys/devices/platform/hp-wmi/rgb_zones/zone03 0660 root omen-rgb -" - ]; services.udev.extraRules = '' SUBSYSTEM=="platform", KERNEL=="hp-wmi", ACTION=="add", \ + RUN+="${pkgs.coreutils-full}/bin/sleep 2", \ RUN+="${pkgs.coreutils}/bin/chgrp omen-rgb /sys/devices/platform/hp-wmi/rgb_zones/zone00", \ RUN+="${pkgs.coreutils}/bin/chmod 0660 /sys/devices/platform/hp-wmi/rgb_zones/zone00", \ RUN+="${pkgs.coreutils}/bin/chgrp omen-rgb /sys/devices/platform/hp-wmi/rgb_zones/zone01", \