I have a problem with my Sound Blaster Z PCI sound card that I can’t wrap my head around.
Whenever I boot my machine I have no sound. This is not specific to NixOS, this happens on every distro I tried.
I narrowed the problem down to my “Front” channel being muted every time I reboot the system. So my usual fix is to use alsamixer
to un-mute the channel and everything is golden. The problem is that this is not being saved or loaded by the alsa store and restore services.
My workaround was to create my own services that have different timings (meaning the restore service just waits for 15s and then runs the restore command) but that felt like, well, a workaround and not actually fixing the issue.
This is the “audio” part of my config excluding my workaround services:
hardware.pulseaudio.enable = false;
security.rtkit.enable = true;
services.pipewire = {
enable = true;
alsa = {
enable = true;
support32Bit = true;
};
pulse.enable = true;
wireplumber.enable = true;
};
environment.systemPackages = with pkgs; [
jamesdsp
pavucontrol
alsa-utils
];
My question is: What should I do to actually fix the problem? Am I even supposed to use alsa to fix my issues or is there something else I should consider? I found alsa.enablePersistence
while looking through the nixpkgs source but idk if that is helpful.
I’m relatively new to linux and especially NixOS so if you want to help it would be much appreciated if you could not only tell me what to do but also why.
Thank you for your time!