polkit.addRule(function(action, subject) {
  if (action.id == "org.freedesktop.systemd1.manage-units" &&
      action.lookup("unit") == "nose-reboot.service" &&
      subject.user == "nose") {
    return polkit.Result.YES;
  }
});