diff --git a/modules/services/audio/alsa.nix b/modules/services/audio/alsa.nix index 7d4cc100fd2..d16a6794832 100644 --- a/modules/services/audio/alsa.nix +++ b/modules/services/audio/alsa.nix @@ -55,13 +55,13 @@ in mkdir -m 0755 -p $(dirname ${soundState}) # Restore the sound state. - ${alsaUtils}/sbin/alsactl -f ${soundState} restore || true + ${alsaUtils}/sbin/alsactl --ignore -f ${soundState} restore ''; postStop = '' # Save the sound state. - ${alsaUtils}/sbin/alsactl -f ${soundState} store + ${alsaUtils}/sbin/alsactl --ignore -f ${soundState} store ''; };