Output and hooks per group

Hi,

What’s all possible to define for a group?
I want to have different hooks and outputs per group and tried to define
hooks and output sections inside the groups.

groups:
  grp1:
    output:
      git:
        user: root
        email: [email protected]
        single_repo: true
        repo: "~/.config/oxidized/configs/repo"
        hooks: push_to_remote
    interval: 3600
    hooks:
      push_to_remote:
        type: githubrepo
        events: [post_store]
        remote_repo: [email protected]:some/repo.git
        publickey: "~/.config/oxidized/bitbucket.pub"
        privatekey: "~/.config/oxidized/bitbucket"
  grp2:
    output:
      file:
        directory: "~/.config/oxidized/configs/grp2"
    hooks:
      name_versioning:
        type: exec
        events: [nodes_done]
        cmd: 'something'
    interval: 900

And I’ve also tried to define hooks and outputs global and referenced them in the group.
It’s not working all together.

groups:
  grp1:
    output: git
    hooks: push_to_remote
    interval: 3600
  grp2:
    output: file
    hooks: name_versioning
    interval: 900
output:
  git:
    user: root
    email: [email protected]
    single_repo: true
    repo: "~/.config/oxidized/configs/repo"
  file:
    directory: "~/.config/oxidized/configs/grp2"
hooks:
  push_to_remote:
    type: githubrepo
    events: [post_store]
    remote_repo: [email protected]:some/repo.git
    publickey: "~/.config/oxidized/bitbucket.pub"
    privatekey: "~/.config/oxidized/bitbucket"
  name_versioning:
    type: exec
    events: [nodes_done]
    cmd: 'something'

So is that possible anyway?

Thanks, Christian