diff --git a/hwModules/common/laptop/default.nix b/hwModules/common/laptop/default.nix index 346886a0..9980b70f 100644 --- a/hwModules/common/laptop/default.nix +++ b/hwModules/common/laptop/default.nix @@ -22,8 +22,8 @@ power-profiles-daemon.enable = lib.mkDefault true; udev.extraRules = '' - SUBSYSTEM=="power_supply", ATTR{online}=="1", ACTION=="change", RUN+="${lib.getExe pkgs.power-profiles-daemon} set balanced" - SUBSYSTEM=="power_supply", ATTR{online}=="0", ACTION=="change", RUN+="${lib.getExe pkgs.power-profiles-daemon} set power-saver" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ATTR{online}=="1", ACTION=="change", RUN+="${lib.getExe pkgs.power-profiles-daemon} set balanced" + SUBSYSTEM=="power_supply", ENV{POWER_SUPPLY_NAME}=="ACAD", ATTR{online}=="0", ACTION=="change", RUN+="${lib.getExe pkgs.power-profiles-daemon} set power-saver" ''; upower.enable = lib.mkDefault true;