audio-server: enable user units

This commit is contained in:
Sandro - 2023-12-22 22:38:33 +01:00
parent 1cd74cd8d8
commit d04b6dd7b6
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 6 additions and 0 deletions

View File

@ -171,6 +171,12 @@ in
sound.enable = true;
system.userActivationScripts.symlinkPipewireSystemdUnit.text = lib.mkIf config.c3d2.k-ot.enable /* bash */ ''
if [[ $USERNAME == hotpit ]]; then
systemctl --user enable pipewire-pulse
fi
'';
systemd = {
services = {
bluetooth-agent = lib.mkIf config.hardware.bluetooth.enable {