feat(pipewire): Add alsa integration

Any programs running through alsa only (such as spotify_player on
voidlinux) should now also work correctly through the pipewire stack.
This commit is contained in:
Marty Oehme 2025-03-06 20:06:46 +01:00
parent 317b931de0
commit dc78da4d03
Signed by: Marty
GPG key ID: 4E535BC19C61886E
5 changed files with 56 additions and 1 deletions

View file

@ -0,0 +1,8 @@
---
# should the system automatically login as the primary user
dm_auto_login: true
# default command to run on login
# can be pause if we use services to start graphical env
# otherwise a shell, e.g. zsh makes sense
dm_command: pause

View file

@ -22,6 +22,15 @@
mode: 0644
force: true
- name: Enable power management for _greeter user
ansible.builtin.copy:
content: "_greeter ALL=(ALL) NOPASSWD: /usr/sbin/shutdown, /usr/bin/reboot, /usr/bin/poweroff, /usr/bin/shutdown"
dest: "/etc/sudoers.d/30-greeter"
owner: root
group: root
mode: 0644
force: true
- name: Activate greetd service
ansible.builtin.file:
src: "/etc/sv/greetd"

View file

@ -5,9 +5,14 @@ vt = 7
# The default session, also known as the greeter.
[default_session]
command = "tuigreet --cmd zsh"
command = "tuigreet --cmd {{ dm_command }}"
command = "tuigreet --power-reboot 'sudo reboot' --power-shutdown 'sudo poweroff' --cmd {{ dm_command }}"
user = "{{ greeter_user }}"
[initial_session]
command = "{{ dm_command }}"
user = "{{ user_name | default('root') }}"
# `agreety` is the bundled agetty/login-lookalike. You can replace `/bin/sh`
# with whatever you want started, such as `sway`.
# command = "agreety --cmd /bin/sh"