feat(custom): Add keyd service

This commit is contained in:
Marty Oehme 2025-02-21 16:55:10 +01:00
parent dc0f272c04
commit c321289ca0
Signed by: Marty
GPG key ID: 4E535BC19C61886E
2 changed files with 25 additions and 0 deletions

View file

@ -21,6 +21,9 @@
- name: Import chroot user management tasks
ansible.builtin.import_playbook: void_user.yaml
- name: Import chroot void customizations
ansible.builtin.import_playbook: void_custom.yaml
# - I chose to use booster instead of dracut
# - easiest way to achieve this is before installing `base-system`
# to `echo 'ignorepkg=dracut' >> /etc/xbps.d/ignore-dracut.conf`

22
void_custom.yaml Normal file
View file

@ -0,0 +1,22 @@
- name: Install void customizations
hosts: guest
become: true
vars:
ansible_chroot_exe: arch-chroot
tasks:
- name: Set up keyd for custom key events
community.general.xbps:
name:
- keyd
state: present
notify: installed-keyd
handlers:
- name: Activate keyd service
ansible.builtin.file:
force: 'yes'
src: "/etc/sv/{{ item }}"
dest: "/etc/runit/runsvdir/default/{{ item }}"
state: link
with_items: [ keyd ]
listen: installed-keyd