From 108c1d9d605776461c5bb57a8f23ad41e23fcfad Mon Sep 17 00:00:00 2001 From: Colin Date: Thu, 1 Jun 2023 09:38:51 +0000 Subject: [PATCH] moby: don't set ALSA_CONFIG_UCM2 var within pulseaudio service --- hosts/by-name/moby/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hosts/by-name/moby/default.nix b/hosts/by-name/moby/default.nix index 1d9b881f..8ece4031 100644 --- a/hosts/by-name/moby/default.nix +++ b/hosts/by-name/moby/default.nix @@ -79,9 +79,10 @@ # inject specialized alsa configs via the environment. # specifically, this gets the pinephone headphones & internal earpiece working. - # see pkgs/patched/alsa-ucm-conf for more info + # see pkgs/patched/alsa-ucm-conf for more info. + # older code had me also setting `systemd.services.pulseaudio.environment.ALSA_CONFIG_UCM2`, + # but it seems safe to set this only globally, and not per-service. environment.variables.ALSA_CONFIG_UCM2 = "${pkgs.alsa-ucm-conf-sane}/share/alsa/ucm2"; - systemd.services.pulseaudio.environment.ALSA_CONFIG_UCM2 = "${pkgs.alsa-ucm-conf-sane}/share/alsa/ucm2"; hardware.opengl.driSupport = true; }