feat(custom): Add keyd service
This commit is contained in:
parent
dc0f272c04
commit
c321289ca0
2 changed files with 25 additions and 0 deletions
|
@ -21,6 +21,9 @@
|
||||||
- name: Import chroot user management tasks
|
- name: Import chroot user management tasks
|
||||||
ansible.builtin.import_playbook: void_user.yaml
|
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
|
# - I chose to use booster instead of dracut
|
||||||
# - easiest way to achieve this is before installing `base-system`
|
# - easiest way to achieve this is before installing `base-system`
|
||||||
# to `echo 'ignorepkg=dracut' >> /etc/xbps.d/ignore-dracut.conf`
|
# to `echo 'ignorepkg=dracut' >> /etc/xbps.d/ignore-dracut.conf`
|
||||||
|
|
22
void_custom.yaml
Normal file
22
void_custom.yaml
Normal 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
|
Loading…
Reference in a new issue