I was just trying to do the same thing! NixOS wiki has a solution here, it seems like you just need to substitute the package path for chmod. Here's the rule that ended up working for me:
services.udev.extraRules = ''
ACTION=="add", SUBSYSTEM=="backlight", RUN+="${pkgs.coreutils}/bin/chmod g+w \$sys\$devpath/brightness"
'';