Configuring passwordless write access to a specific `/sys` path for gnome-shell-extension-ideapad

/run/current-system/sw/bin/teeis the only one that works.

Working Code:

security.sudo.extraRules = [{
    groups = [ "wheel" ];
    commands = [{
      options = [ "NOPASSWD" ];
      command =
        "/run/current-system/sw/bin/tee /sys/bus/platform/drivers/ideapad_acpi/VPC????\\:??/conservation_mode";
    }];
  }];

Thank you everyone

1 Like